Class CloseableReentrantLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
com.inductiveautomation.ignition.gateway.util.CloseableReentrantLock
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Lock
A ReentrantLock that supports Java 8 AutoCloseable.
Would be in common if we didn't require J6 outside of the gateway.
- 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:
close
in interfaceAutoCloseable
-