class NopLock extends java.lang.Object implements ResourceLock
ResourceLock
implementation.Modifier and Type | Field and Description |
---|---|
(package private) static ResourceLock |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
NopLock() |
Modifier and Type | Method and Description |
---|---|
ResourceLock |
acquire()
Acquire this resource lock, potentially blocking.
|
void |
release()
Release this resource lock.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
static final ResourceLock INSTANCE
public ResourceLock acquire()
ResourceLock
acquire
in interface ResourceLock
public void release()
ResourceLock
release
in interface ResourceLock