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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.concurrent.locks.ReentrantLockgetHoldCount, 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- 
lockpublic void lock()- Specified by:
- lockin interface- Lock
- Overrides:
- lockin class- ReentrantLock
 
- 
unlockpublic void unlock()- Specified by:
- unlockin interface- Lock
- Overrides:
- unlockin class- ReentrantLock
 
 
-