Lock
public final class DummyConcurrentLock extends Object implements Lock
ReentrantLock
to disable lockingModifier 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 Lock
public Condition newCondition()
newCondition
in interface Lock
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.