Class SmbLastModifiedFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter<jcifs.smb.SmbFile>
org.springframework.integration.smb.filters.SmbLastModifiedFileListFilter
- All Implemented Interfaces:
org.springframework.integration.file.filters.DiscardAwareFileListFilter<jcifs.smb.SmbFile>,org.springframework.integration.file.filters.FileListFilter<jcifs.smb.SmbFile>
public class SmbLastModifiedFileListFilter
extends org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter<jcifs.smb.SmbFile>
The
AbstractLastModifiedFileListFilter implementation to filter those files which
SmbFile.getLastModified() is less than the age in comparison with the current time.
The resolution is done in seconds.
When discardCallbackAbstractLastModifiedFileListFilter.addDiscardCallback(Consumer) is provided, it called for all the rejected files.- Since:
- 6.2
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter
ONE_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionSmbLastModifiedFileListFilter(long age) Construct aSmbLastModifiedFileListFilterinstance with provided age. -
Method Summary
Modifier and TypeMethodDescriptionprotected InstantgetLastModified(jcifs.smb.SmbFile remoteFile) Methods inherited from class org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter
accept, addDiscardCallback, filterFiles, getAgeDuration, setAge, setAge, supportsSingleFileFilteringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.file.filters.FileListFilter
isForRecursion
-
Constructor Details
-
SmbLastModifiedFileListFilter
public SmbLastModifiedFileListFilter() -
SmbLastModifiedFileListFilter
public SmbLastModifiedFileListFilter(long age) Construct aSmbLastModifiedFileListFilterinstance with provided age. Defaults to 60 seconds.- Parameters:
age- the age in seconds.
-
-
Method Details
-
getLastModified
- Specified by:
getLastModifiedin classorg.springframework.integration.file.filters.AbstractLastModifiedFileListFilter<jcifs.smb.SmbFile>
-