Class LoggingReentrantLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
com.atlassian.confluence.internal.search.v2.lucene.LoggingReentrantLock
- All Implemented Interfaces:
Serializable
,Lock
Adds logging and profiling to lock and unlock methods.
- Since:
- 8.0
- 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, toString, tryLock, tryLock
-
Constructor Details
-
LoggingReentrantLock
- Parameters:
name
- the name of the lock, used for logging and a profiling key
-
-
Method Details
-
lock
public void lock()- Specified by:
lock
in interfaceLock
- Overrides:
lock
in classReentrantLock
-
unlock
public void unlock()- Specified by:
unlock
in interfaceLock
- Overrides:
unlock
in classReentrantLock
-