Class LoggingReentrantLock
- java.lang.Object
-
- java.util.concurrent.locks.ReentrantLock
-
- com.atlassian.confluence.internal.search.v2.lucene.LoggingReentrantLock
-
- All Implemented Interfaces:
Serializable,Lock
public class LoggingReentrantLock extends ReentrantLock
Adds logging and profiling to lock and unlock methods.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoggingReentrantLock(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()voidunlock()-
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 Detail
-
LoggingReentrantLock
public LoggingReentrantLock(String name)
- Parameters:
name- the name of the lock, used for logging and a profiling key
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantLock
-
unlock
public void unlock()
- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantLock
-
-