Class CloseableReentrantLock

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable, java.util.concurrent.locks.Lock

    public class CloseableReentrantLock
    extends java.util.concurrent.locks.ReentrantLock
    implements java.lang.AutoCloseable
    A ReentrantLock that supports Java 8 AutoCloseable. Would be in common if we didn't require J6 outside of the gateway.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      CloseableReentrantLock open()  
      • Methods inherited from class java.util.concurrent.locks.ReentrantLock

        getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
      • Methods inherited from class java.lang.Object

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

      • CloseableReentrantLock

        public CloseableReentrantLock()
    • Method Detail

      • close

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