| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
locked |
| Constructor and Description |
|---|
AbstractLock2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked() |
void |
lockInterruptibly() |
Condition |
newCondition()
Not supported, will return null
|
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
protected AtomicBoolean locked
public boolean isLocked()
public boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LockCopyright © 2010-2016 Stardog Union. All Rights Reserved.