org.semispace
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 Summary
 boolean cancel()
          Return true if operation was a success
 long getHolderId()
           
 boolean renew(long duration)
          Return true if operation was a success
 

Method Detail

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


Copyright © 2008-2012. All Rights Reserved.