Lockpublic final class DummyConcurrentLock extends Object implements Lock
ReentrantLock to disable locking| Modifier and Type | Field | Description |
|---|---|---|
static DummyConcurrentLock |
INSTANCE |
a default instance, can be always used, as this
Lock is stateless. |
| Constructor | Description |
|---|---|
DummyConcurrentLock() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
lock() |
|
void |
lockInterruptibly() |
|
Condition |
newCondition() |
|
boolean |
tryLock() |
|
boolean |
tryLock(long time,
TimeUnit unit) |
|
void |
unlock() |
public static final DummyConcurrentLock INSTANCE
Lock is stateless.public void lockInterruptibly()
lockInterruptibly in interface Lockpublic Condition newCondition()
newCondition in interface LockCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.