Constructor and Description |
---|
NoOpLock() |
Modifier and Type | Method and Description |
---|---|
void |
lock()
Proceeds as if the lock has been acquired.
|
void |
lockInterruptibly()
Proceeds as if the lock has been acquired.
|
Condition |
newCondition()
Not supported.
|
boolean |
tryLock()
Always succeeds.
|
boolean |
tryLock(long time,
TimeUnit unit)
Always succeeds.
|
void |
unlock()
The lock has never been taken so no effect.
|
public void lock()
public void lockInterruptibly()
lockInterruptibly
in interface Lock
public boolean tryLock()
public boolean tryLock(long time, TimeUnit unit)
public void unlock()
public Condition newCondition()
newCondition
in interface Lock
UnsupportedOperationException
- always.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.