Class MultiLock

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MultiLock
    extends java.lang.Object
    implements java.io.Closeable
    • Method Summary

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

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

      • MultiLock

        public MultiLock​(Lockable... lockables)
      • MultiLock

        public MultiLock​(java.util.Collection<? extends Lockable> lockables)
    • Method Detail

      • unlock

        public void unlock()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable