public class ReadLockDebug extends ReentrantReadWriteLock.ReadLock
| Constructor and Description |
|---|
ReadLockDebug(ReentrantReadWriteLockTracker lock) |
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement[] |
getStackTrace() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
String |
toString() |
boolean |
tryLock() |
boolean |
tryLock(long timeout,
TimeUnit unit) |
void |
unlock() |
public ReadLockDebug(ReentrantReadWriteLockTracker lock)
public void lock()
lock in interface Locklock in class ReentrantReadWriteLock.ReadLockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LocklockInterruptibly in class ReentrantReadWriteLock.ReadLockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LocknewCondition in class ReentrantReadWriteLock.ReadLockpublic String toString()
toString in class ReentrantReadWriteLock.ReadLockpublic boolean tryLock()
tryLock in interface LocktryLock in class ReentrantReadWriteLock.ReadLockpublic boolean tryLock(long timeout,
TimeUnit unit)
throws InterruptedException
tryLock in interface LocktryLock in class ReentrantReadWriteLock.ReadLockInterruptedExceptionpublic void unlock()
unlock in interface Lockunlock in class ReentrantReadWriteLock.ReadLockpublic StackTraceElement[] getStackTrace()
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.