Class LockFromFile

All Implemented Interfaces:
Lock

public class LockFromFile extends LockBaseRepeat
  • Field Details

  • Constructor Details

  • Method Details

    • getPath

      public Path getPath()
    • singleLockAttempt

      public boolean singleLockAttempt() throws InterruptedException
      First, attempt to create the process lock file. If the manager already owns it then this step succeeds immediately without further waiting. Afterwards, attempt to get the thread lock
      Specified by:
      singleLockAttempt in class LockBaseRepeat
      Throws:
      InterruptedException
    • unlock

      public void unlock()