org.semispace
Class ListenerLease
java.lang.Object
org.semispace.ListenerLease
- All Implemented Interfaces:
- SemiLease
public class ListenerLease
- extends Object
- implements SemiLease
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 |
ListenerLease
public ListenerLease(ListenerHolder 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.