com.netflix.curator.framework.recipes.locks
Interface Lease
- All Superinterfaces:
- Closeable
public interface Lease
- extends Closeable
Represents an acquired lease from an 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.
|
Method Summary |
void |
close()
Releases the lease so that other clients/processes can acquire it |
close
void close()
throws IOException
- Releases the lease so that other clients/processes can acquire it
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2012. All Rights Reserved.