java.lang.Object
java.util.concurrent.locks.ReentrantLock
com.renomad.minum.database.InspectableLock
- All Implemented Interfaces:
Serializable,Lock
A child class which provides access to
the
ReentrantLock.getOwner() method,
useful for logging who a thread is waiting on
when multiple are contending.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide access to the protected method,ReentrantLock.getOwner()static StringgetLockOwnerIdString(Thread thread) A helper method to get the identifier for a thread, handling null when necessaryMethods 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
-
InspectableLock
public InspectableLock()
-
-
Method Details
-
getLockOwner
Provide access to the protected method,ReentrantLock.getOwner() -
getLockOwnerIdString
A helper method to get the identifier for a thread, handling null when necessary
-