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
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected boolean
fileStillExists
(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 boolean
isDirectory
(File file) Subclasses must implement this method to indicate whether the file is a directory or not.protected long
Methods inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
accept, buildKey, close, 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
-
FileSystemPersistentAcceptOnceFileListFilter
-
-
Method Details
-
modified
- Specified by:
modified
in classAbstractPersistentAcceptOnceFileListFilter<File>
-
fileName
- Specified by:
fileName
in 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:
fileStillExists
in classAbstractPersistentAcceptOnceFileListFilter<File>
- Parameters:
file
- the file.- Returns:
- true if the filter should return true.
- Since:
- 4.3.19
-
isDirectory
Description copied from class:AbstractDirectoryAwareFileListFilter
Subclasses must implement this method to indicate whether the file is a directory or not.- Overrides:
isDirectory
in classAbstractPersistentAcceptOnceFileListFilter<File>
- Parameters:
file
- the file.- Returns:
- true if it's a directory.
-