Class FileRenameExclusiveReadLockStrategy

  • All Implemented Interfaces:
    GenericFileExclusiveReadLockStrategy<File>

    public class FileRenameExclusiveReadLockStrategy
    extends GenericFileRenameExclusiveReadLockStrategy<File>
    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.

    This implementation is only supported by the File component, that leverages the MarkerFileExclusiveReadLockStrategy as well, to ensure only acquiring locks on files, which is not already in progress by another process, that have marked this using the marker file.

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