org.semispace
Class ElementLease
java.lang.Object
org.semispace.ElementLease
- All Implemented Interfaces:
- SemiLease
public class ElementLease
- extends Object
- implements SemiLease
Lease for an object in the space
Method Summary |
boolean |
cancel()
Return true if operation was a success |
long |
getHolderId()
|
boolean |
renew(long duration)
Return true if operation was a success |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementLease
public ElementLease(Holder holder,
SemiSpace space)
cancel
public boolean cancel()
- Description copied from interface:
SemiLease
- Return true if operation was a success
- Specified by:
cancel
in interface SemiLease
- See Also:
SemiLease.cancel()
renew
public boolean renew(long duration)
- Description copied from interface:
SemiLease
- Return true if operation was a success
- Specified by:
renew
in interface SemiLease
- See Also:
SemiLease.renew(long)
getHolderId
public long getHolderId()
- Specified by:
getHolderId
in interface SemiLease
- Returns:
- holder id for the lease
Copyright © 2008-2012. All Rights Reserved.