Class DirectoryLock


  • public class DirectoryLock
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LOCKNAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectoryLock​(java.io.File directory, long timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void lock()  
      void release()  
      • Methods inherited from class java.lang.Object

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

      • DirectoryLock

        public DirectoryLock​(java.io.File directory,
                             long timeout)
    • Method Detail

      • release

        public void release()
      • lock

        public void lock()
                  throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException