Class FileChangedExclusiveReadLockStrategy

java.lang.Object
org.apache.camel.component.file.strategy.MarkerFileExclusiveReadLockStrategy
org.apache.camel.component.file.strategy.FileChangedExclusiveReadLockStrategy
All Implemented Interfaces:
GenericFileExclusiveReadLockStrategy<File>

public class FileChangedExclusiveReadLockStrategy extends MarkerFileExclusiveReadLockStrategy
Acquires exclusive read lock to the given file by checking whether the file is being changed by scanning the file at different intervals (to detect changes).

Setting the option MarkerFileExclusiveReadLockStrategy.setMarkerFiler(boolean) to false allows to turn off using marker files.