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
Author:
Gary Russell, Artem Bilan