Class LastModifiedFileListFilter

java.lang.Object
org.springframework.integration.file.filters.LastModifiedFileListFilter
All Implemented Interfaces:
DiscardAwareFileListFilter<File>, FileListFilter<File>

public class LastModifiedFileListFilter extends Object implements DiscardAwareFileListFilter<File>
The FileListFilter implementation to filter those files which File.lastModified() is less than the age in comparison with the current time.

The resolution is done in seconds.

When discardCallback is provided, it called for all the rejected files.

Since:
4.2
  • Constructor Details

    • LastModifiedFileListFilter

      public LastModifiedFileListFilter()
    • LastModifiedFileListFilter

      public LastModifiedFileListFilter(long age)
      Construct a LastModifiedFileListFilter instance with provided age. Defaults to 60 seconds.
      Parameters:
      age - the age in seconds.
      Since:
      5.0
  • Method Details