Interface LockableFile.InterProcessLock

  • All Known Implementing Classes:
    LockableFile.LockFile, LockableFile.NioFileLock
    Enclosing class:
    LockableFile

    private static interface LockableFile.InterProcessLock
    Interface for abstracting away the details of how a file is locked system wide. Note: the implementations may NOT be re-entrant and thus must not be called if the thread is already holding a lock for a file.
    • Method Detail

      • lock

        void lock()
           throws java.io.IOException
        Throws:
        java.io.IOException
      • tryLock

        boolean tryLock()
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • unlock

        void unlock()
             throws java.io.IOException
        Throws:
        java.io.IOException