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, unlockpublic CloseableReentrantLock open()
public void close()
close in interface java.lang.AutoCloseable