private static class NoLockFactory.NoLock extends Lock
Modifier | Constructor and Description |
---|---|
private |
NoLock() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases exclusive access.
|
void |
ensureValid()
Best effort check that this lock is still valid.
|
java.lang.String |
toString() |
public void close()
Lock
Note that exceptions thrown from close may require human intervention, as it may mean the lock was no longer valid, or that fs permissions prevent removal of the lock file, or other reasons.
public void ensureValid() throws java.io.IOException
Lock
ensureValid
in class Lock
java.io.IOException
- if the lock is no longer valid.public java.lang.String toString()
toString
in class java.lang.Object