Interface SemiLease
- All Known Implementing Classes:
ElementLease, ListenerLease
public interface SemiLease
Lease which can be used to either cancel or renew the
held object, if possible. The lease is intended to be
used on the same VM only, and can therefore not
be transferred anywhere.
-
Method Details
-
cancel
boolean cancel()Return true if operation was a success -
renew
boolean renew(long duration) Return true if operation was a success -
getHolderId
long getHolderId()- Returns:
- holder id for the lease
-