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