Class TraceableReentrantLock
- java.lang.Object
-
- java.util.concurrent.locks.ReentrantLock
-
- com.inductiveautomation.ignition.common.util.TraceableReentrantLock
-
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.locks.Lock
public class TraceableReentrantLock extends java.util.concurrent.locks.ReentrantLock- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TraceableReentrantLock(org.apache.log4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()voidlock(java.lang.String callingMethod)booleantryLock()booleantryLock(java.lang.String callingMethod)voidunlock()voidunlock(java.lang.String callingMethod)-
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock
-
-
-
-
Method Detail
-
tryLock
public boolean tryLock(java.lang.String callingMethod)
-
lock
public void lock(java.lang.String callingMethod)
-
unlock
public void unlock(java.lang.String callingMethod)
-
tryLock
public boolean tryLock()
- Specified by:
tryLockin interfacejava.util.concurrent.locks.Lock- Overrides:
tryLockin classjava.util.concurrent.locks.ReentrantLock
-
lock
public void lock()
- Specified by:
lockin interfacejava.util.concurrent.locks.Lock- Overrides:
lockin classjava.util.concurrent.locks.ReentrantLock
-
unlock
public void unlock()
- Specified by:
unlockin interfacejava.util.concurrent.locks.Lock- Overrides:
unlockin classjava.util.concurrent.locks.ReentrantLock
-
-