public class EventLease extends AbstractLease
expiration, serialFormat| Modifier and Type | Method and Description |
|---|---|
boolean |
canBatch(Lease lease)
Two leases can be batched if they are both RegistrarLeases and
have the same server.
|
void |
cancel()
Used by the lease holder to indicate that it is no longer interested
in the resource or information held by the lease.
|
LeaseMap |
createLeaseMap(long duration)
Creates a lease map.
|
protected long |
doRenew(long duration)
Renews the event lease associated with an instance of this class.
|
boolean |
equals(Object obj)
Returns true if lease Uuids match, false otherwise.
|
Uuid |
getReferentUuid()
Returns the lease Uuid.
|
int |
hashCode()
Returns the lease Uuid's hash code.
|
String |
toString()
Returns a string created from the proxy class name, the registrar's
service ID, the id of the lessee or event (depending on the subclass),
and the result of the underlying server proxy's toString method.
|
getExpiration, getSerialFormat, renew, setSerialFormatpublic void cancel()
throws UnknownLeaseException,
RemoteException
LeaseUnknownLeaseException - the lease being cancelled is unknown
to the lease grantorRemoteExceptionprotected long doRenew(long duration)
throws UnknownLeaseException,
RemoteException
doRenew in class AbstractLeaseduration - the requested duration for the lease being renewedUnknownLeaseException - indicates the lease does not exist;
typically because the lease has expired.RemoteExceptionpublic LeaseMap createLeaseMap(long duration)
createLeaseMap in interface Leaseduration - the duration to put into a Long and use as the
value for the current lease in the created LeaseMappublic boolean canBatch(Lease lease)
public Uuid getReferentUuid()
getReferentUuid in interface ReferentUuidUuid associated with the
resource this proxy represents. Will not
return null.public int hashCode()
public boolean equals(Object obj)
Copyright © GigaSpaces.