Class GenericFileRenameExclusiveReadLockStrategy<T>

java.lang.Object
org.apache.camel.component.file.strategy.GenericFileRenameExclusiveReadLockStrategy<T>
All Implemented Interfaces:
GenericFileExclusiveReadLockStrategy<T>
Direct Known Subclasses:
FileRenameExclusiveReadLockStrategy

public class GenericFileRenameExclusiveReadLockStrategy<T> extends Object implements GenericFileExclusiveReadLockStrategy<T>
Acquires exclusive read lock to the given file. Will wait until the lock is granted. After granting the read lock it is released, we just want to make sure that when we start consuming the file its not currently in progress of being written by third party.