Class CooperativeFileLock

    • Constructor Detail

      • CooperativeFileLock

        public CooperativeFileLock()
    • Method Detail

      • init

        public void init​(String path)
        Create a new file locking object using the given file name.
        Specified by:
        init in interface RepositoryLockMechanism
        path - basic path to append FILE_NAME to.
      • release

        public void release()
        Unlock the directory. The watchdog thread is stopped. This method does nothing if the file is already unlocked.
        Specified by:
        release in interface RepositoryLockMechanism