public final class DummyConcurrentLock extends Object implements Lock
ReentrantLock to disable locking| Modifier and Type | Field and Description |
|---|---|
static DummyConcurrentLock |
INSTANCE
a default instance, can be always used, as this
Lock is stateless. |
| Constructor and Description |
|---|
DummyConcurrentLock() |
| Modifier and Type | Method and 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 Lock