Class SftpPersistentAcceptOnceFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.filters.SftpPersistentAcceptOnceFileListFilter
- All Implemented Interfaces:
Closeable,AutoCloseable,FileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>,ResettableFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>,ReversibleFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
public class SftpPersistentAcceptOnceFileListFilter
extends 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
- Author:
- Gary Russell, David Liu, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store -
Constructor Summary
ConstructorsConstructorDescriptionSftpPersistentAcceptOnceFileListFilter(ConcurrentMetadataStore store, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfileName(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected booleanisDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) Subclasses must implement this method to indicate whether the file is a directory or not.protected longmodified(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, setFlushOnUpdateMethods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursionMethods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, 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
filterFiles, isForRecursion, supportsSingleFileFiltering
-
Constructor Details
-
SftpPersistentAcceptOnceFileListFilter
-
-
Method Details
-
modified
protected long modified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
modifiedin classAbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
fileName
- Specified by:
fileNamein classAbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>
-
isDirectory
protected boolean isDirectory(org.apache.sshd.sftp.client.SftpClient.DirEntry file) Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Overrides:
isDirectoryin classAbstractPersistentAcceptOnceFileListFilter<org.apache.sshd.sftp.client.SftpClient.DirEntry>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-