Class Lock

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public final class Lock
    extends java.lang.Object
    implements java.lang.AutoCloseable
    An acquired lock which is released on close
    Author:
    bratseth
    • Method Summary

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

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

      • close

        public void close()
        Releases this lock
        Specified by:
        close in interface java.lang.AutoCloseable