Class SftpPersistentAcceptOnceFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.filters.SftpPersistentAcceptOnceFileListFilter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.springframework.integration.file.filters.FileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
,org.springframework.integration.file.filters.ResettableFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
,org.springframework.integration.file.filters.ReversibleFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
public class SftpPersistentAcceptOnceFileListFilter
extends org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
Persistent file list filter using the server's file timestamp to detect if we've already
'seen' this file.
- Since:
- 3.0
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store
-
Constructor Summary
ConstructorDescriptionSftpPersistentAcceptOnceFileListFilter
(org.springframework.integration.metadata.ConcurrentMetadataStore store, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
fileName
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected boolean
isDirectory
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected long
modified
(org.apache.sshd.sftp.client.SftpClient.DirEntry file) Methods inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
accept, buildKey, close, fileStillExists, flushIfNeeded, isEqual, remove, rollback, setFlushOnUpdate
Methods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursion
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, 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
filterFiles, isForRecursion, supportsSingleFileFiltering
-
Constructor Details
-
SftpPersistentAcceptOnceFileListFilter
public SftpPersistentAcceptOnceFileListFilter(org.springframework.integration.metadata.ConcurrentMetadataStore store, String prefix)
-
-
Method Details
-
modified
protected long modified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
modified
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
fileName
- Specified by:
fileName
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
isDirectory
protected boolean isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Overrides:
isDirectory
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-