Class AbstractMultiReaderMutableCollection.LockWrapper

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    AbstractMultiReaderMutableCollection<T>

    public static class AbstractMultiReaderMutableCollection.LockWrapper
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.locks.Lock lock  
    • Constructor Summary

      Constructors 
      Constructor Description
      LockWrapper​(java.util.concurrent.locks.Lock lock)  
    • Method Summary

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

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

      • lock

        private final java.util.concurrent.locks.Lock lock
    • Constructor Detail

      • LockWrapper

        public LockWrapper​(java.util.concurrent.locks.Lock lock)
    • Method Detail

      • close

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