Class AbstractFileLockerFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<File>
org.springframework.integration.file.locking.AbstractFileLockerFilter
- All Implemented Interfaces:
FileLocker, FileListFilter<File>
- Direct Known Subclasses:
NioFileLocker
public abstract class AbstractFileLockerFilter
extends AbstractFileListFilter<File>
implements FileLocker
Convenience base class for implementing FileLockers that check a lock before accepting a file. This is needed
when used in combination with a FileReadingMessageSource through a DirectoryScanner.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Methods 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
isForRecursionMethods inherited from interface FileLocker
isLockable, lock, unlock
-
Constructor Details
-
AbstractFileLockerFilter
public AbstractFileLockerFilter()
-
-
Method Details
-
accept
Description copied from class:AbstractFileListFilterSubclasses must implement this method.- Specified by:
acceptin interfaceFileListFilter<File>- Specified by:
acceptin classAbstractFileListFilter<File>- Parameters:
file- The file.- Returns:
- true if the file passes the filter.
- See Also:
-