Class SmbLastModifiedFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter<jcifs.smb.SmbFile>
org.springframework.integration.smb.filters.SmbLastModifiedFileListFilter
- All Implemented Interfaces:
DiscardAwareFileListFilter<jcifs.smb.SmbFile>
,FileListFilter<jcifs.smb.SmbFile>
public class SmbLastModifiedFileListFilter
extends 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
- Author:
- Adama Sorho
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter
ONE_SECOND
-
Constructor Summary
ConstructorsConstructorDescriptionSmbLastModifiedFileListFilter
(long age) Construct aSmbLastModifiedFileListFilter
instance with provided age. -
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
getLastModified
(jcifs.smb.SmbFile remoteFile) Methods inherited from class org.springframework.integration.file.filters.AbstractLastModifiedFileListFilter
accept, addDiscardCallback, filterFiles, getAgeDuration, setAge, setAge, supportsSingleFileFiltering
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.file.filters.FileListFilter
isForRecursion
-
Constructor Details
-
SmbLastModifiedFileListFilter
public SmbLastModifiedFileListFilter() -
SmbLastModifiedFileListFilter
public SmbLastModifiedFileListFilter(long age) Construct aSmbLastModifiedFileListFilter
instance with provided age. Defaults to 60 seconds.- Parameters:
age
- the age in seconds.
-
-
Method Details
-
getLastModified
- Specified by:
getLastModified
in classAbstractLastModifiedFileListFilter<jcifs.smb.SmbFile>
-