Package 

Class FileLock

    • Constructor Summary

      Constructors 
      Constructor Description
      FileLock(File clientDir, String lockFilename) Creates an NIO FileLock on the specified file if on a suitable Java runtime.
    • Method Summary

      Modifier and Type Method Description
      void release() Releases the lock.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileLock

        FileLock(File clientDir, String lockFilename)
        Creates an NIO FileLock on the specified file if on a suitable Java runtime.
        Parameters:
        clientDir - the a File of the directory to contain the lock file.
        lockFilename - name of the the file to lock
    • Method Detail

      • release

         void release()

        Releases the lock.