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 Lock
lock
in class ReentrantReadWriteLock.ReadLock
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
lockInterruptibly
in class ReentrantReadWriteLock.ReadLock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
newCondition
in class ReentrantReadWriteLock.ReadLock
public String toString()
toString
in class ReentrantReadWriteLock.ReadLock
public boolean tryLock()
tryLock
in interface Lock
tryLock
in class ReentrantReadWriteLock.ReadLock
public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException
tryLock
in interface Lock
tryLock
in class ReentrantReadWriteLock.ReadLock
InterruptedException
public void unlock()
unlock
in interface Lock
unlock
in class ReentrantReadWriteLock.ReadLock
public StackTraceElement[] getStackTrace()
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.