public class WriteLockDebug extends ReentrantReadWriteLock.WriteLock
| Constructor and Description |
|---|
WriteLockDebug(ReentrantReadWriteLockTracker lock) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHoldCount() |
StackTraceElement[] |
getStackTrace() |
boolean |
isHeldByCurrentThread() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long timeout,
TimeUnit unit) |
void |
unlock() |
toStringpublic WriteLockDebug(ReentrantReadWriteLockTracker lock)
public int getHoldCount()
getHoldCount in class ReentrantReadWriteLock.WriteLockpublic boolean isHeldByCurrentThread()
isHeldByCurrentThread in class ReentrantReadWriteLock.WriteLockpublic void lock()
lock in interface Locklock in class ReentrantReadWriteLock.WriteLockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LocklockInterruptibly in class ReentrantReadWriteLock.WriteLockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LocknewCondition in class ReentrantReadWriteLock.WriteLockpublic boolean tryLock()
tryLock in interface LocktryLock in class ReentrantReadWriteLock.WriteLockpublic boolean tryLock(long timeout,
TimeUnit unit)
throws InterruptedException
tryLock in interface LocktryLock in class ReentrantReadWriteLock.WriteLockInterruptedExceptionpublic void unlock()
unlock in interface Lockunlock in class ReentrantReadWriteLock.WriteLockpublic StackTraceElement[] getStackTrace()
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.