| Constructor and Description |
|---|
PromotableReadWriteLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
lock() |
void |
lockInterruptibly() |
void |
lockRead() |
void |
lockWrite() |
Condition |
newCondition() |
protected void |
reacquireReadLocks() |
protected void |
releaseReadLocks() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
void |
unlockRead() |
void |
unlockWrite() |
public void lockRead()
public void unlockRead()
public void lockWrite()
public void unlockWrite()
protected void releaseReadLocks()
protected void reacquireReadLocks()
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LockCopyright © 2019. All rights reserved.