|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Lease
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 |
byte[] |
getData()
Return the data stored in the node for this lease |
| Method Detail |
|---|
void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException - errors
byte[] getData()
throws java.lang.Exception
java.lang.Exception - errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||