public class CloseableReentrantLock
extends java.util.concurrent.locks.ReentrantLock
implements java.lang.AutoCloseable
Constructor and Description |
---|
CloseableReentrantLock() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CloseableReentrantLock |
open() |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
public CloseableReentrantLock open()
public void close()
close
in interface java.lang.AutoCloseable