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, waitclosestatic final ResourceLock INSTANCE
public ResourceLock acquire()
ResourceLockacquire in interface ResourceLockpublic void release()
ResourceLockrelease in interface ResourceLock