Package host.anzo.commons.concurrent
Class CloseableReentrantLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
host.anzo.commons.concurrent.CloseableReentrantLock
- All Implemented Interfaces:
Serializable,AutoCloseable,Lock
- Since:
- 20.11.2016
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
CloseableReentrantLock
public CloseableReentrantLock()
-
-
Method Details
-
open
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-