Class Lock


  • public class Lock
    extends Object
    Shareable, file based locking system.
    Author:
    Yury Molchan
    • Method Detail

      • tryLock

        public boolean tryLock​(String lockedBy)
      • tryLock

        public boolean tryLock​(String lockedBy,
                               long time,
                               TimeUnit unit)
      • forceLock

        public boolean forceLock​(String lockedBy,
                                 long timeToLive,
                                 TimeUnit unit)
      • unlock

        public void unlock()
      • forceUnlock

        public void forceUnlock()