public interface Lease
extends java.io.Closeable
InterProcessSemaphore
. It is the client's responsibility
to close this lease when it is no longer needed so that other blocked clients can use it. If the
client crashes (or its session expires, etc.) the lease will automatically be closed.Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the lease so that other clients/processes can acquire it
|