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()
LockNote 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
LockensureValid in class Lockjava.io.IOException - if the lock is no longer valid.public java.lang.String toString()
toString in class java.lang.Object