Class FileSystemPersistentAcceptOnceFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<File>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<File>
org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<File>
org.springframework.integration.file.filters.FileSystemPersistentAcceptOnceFileListFilter
- All Implemented Interfaces:
Closeable, AutoCloseable, FileListFilter<File>, ResettableFileListFilter<File>, ReversibleFileListFilter<File>
public class FileSystemPersistentAcceptOnceFileListFilter
extends AbstractPersistentAcceptOnceFileListFilter<File>
- Since:
- 3.0
-
Field Summary
Fields inherited from class AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemPersistentAcceptOnceFileListFilter(org.springframework.integration.metadata.ConcurrentMetadataStore store, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanfileStillExists(File file) Check that the file still exists, to avoid a race condition when multi-threaded and another thread removed the file while we were waiting for the lock.protected booleanisDirectory(File file) Subclasses must implement this method to indicate whether the file is a directory or not.protected longMethods inherited from class AbstractPersistentAcceptOnceFileListFilter
accept, buildKey, close, flushIfNeeded, isEqual, remove, rollback, setFlushOnUpdateMethods inherited from class AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursionMethods inherited from class AbstractFileListFilter
filterFiles, supportsSingleFileFilteringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileListFilter
filterFiles, isForRecursion, supportsSingleFileFiltering
-
Constructor Details
-
FileSystemPersistentAcceptOnceFileListFilter
public FileSystemPersistentAcceptOnceFileListFilter(org.springframework.integration.metadata.ConcurrentMetadataStore store, String prefix)
-
-
Method Details
-
modified
- Specified by:
modifiedin classAbstractPersistentAcceptOnceFileListFilter<File>
-
fileName
- Specified by:
fileNamein classAbstractPersistentAcceptOnceFileListFilter<File>
-
fileStillExists
Check that the file still exists, to avoid a race condition when multi-threaded and another thread removed the file while we were waiting for the lock.- Overrides:
fileStillExistsin classAbstractPersistentAcceptOnceFileListFilter<File>- Parameters:
file- the file.- Returns:
- true if the filter should return true.
- Since:
- 4.3.19
-
isDirectory
Description copied from class:AbstractDirectoryAwareFileListFilterSubclasses must implement this method to indicate whether the file is a directory or not.- Overrides:
isDirectoryin classAbstractPersistentAcceptOnceFileListFilter<File>- Parameters:
file- the file.- Returns:
- true if it's a directory.
-