Class FileSystemPersistentAcceptOnceFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
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
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store -
Constructor Summary
Constructors Constructor Description FileSystemPersistentAcceptOnceFileListFilter(ConcurrentMetadataStore store, String prefix) -
Method Summary
Modifier and Type Method Description protected StringfileName(File file)protected 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 longmodified(File file)Methods inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
accept, buildKey, close, flushIfNeeded, isEqual, remove, rollback, setFlushOnUpdateMethods 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, supportsSingleFileFiltering
-
Constructor Details
-
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
-