Class Lock

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class Lock
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      Lock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean isLocked()  
      Lock lock()  
      void unlock()  
      • Methods inherited from class java.lang.Object

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

      • Lock

        public Lock()
    • Method Detail

      • lock

        public Lock lock()
      • isLocked

        public boolean isLocked()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • unlock

        public void unlock()