Package org.jppf.utils.concurrent
Class JPPFQueueLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
org.jppf.utils.concurrent.JPPFQueueLock
- All Implemented Interfaces:
Serializable,Lock
This class is for logging and debugging purposes. It allows distinguishing the lock on the JPPF queue (driver and client) from any other lock in the same JVM.
- Author:
- Laurent Cohen
- 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, lockInterruptibly, newCondition, tryLock, tryLock
-
Constructor Details
-
JPPFQueueLock
Creates an instance ofJPPFReentrantLock.- Parameters:
name- the name.
-
-
Method Details
-
toString
- Overrides:
toStringin classReentrantLock
-
lock
public void lock()- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantLock
-
unlock
public void unlock()- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantLock
-