public static final class NamedSimpleReentrantLock.Acquired extends NamedSimpleReentrantLock.AcquireResult
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Revert the lock operation.
|
boolean |
wasAcquired()
Indication whether the lock operation succeeded, in which case this method returns true.
|
public boolean wasAcquired()
NamedSimpleReentrantLock.AcquireResultwasAcquired in class NamedSimpleReentrantLock.AcquireResultpublic void close()
NamedSimpleReentrantLock.AcquireResultNamedSimpleReentrantLock.AcquireResult.wasAcquired() returns true, this method releases the underlying lock
in an idempotent way. If NamedSimpleReentrantLock.AcquireResult.wasAcquired() returns false, this method does nothing.close in interface AutoCloseableclose in class NamedSimpleReentrantLock.AcquireResultCopyright © 2019 OpenDaylight. All rights reserved.