|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.lease.AbstractLease
com.sun.jini.reggie.EventLease
public class EventLease
When a registrar (lookup service) grants a lease on an event registration on behalf of some object (client), a proxy is employed to allow the client to interact with the lease; this class is the implementation of that proxy. Clients only see instances of this class via the Lease interface.
Field Summary |
---|
Fields inherited from class com.sun.jini.lease.AbstractLease |
---|
expiration, serialFormat |
Fields inherited from interface net.jini.core.lease.Lease |
---|
ABSOLUTE, ANY, DURATION, FOREVER |
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.jini.lease.AbstractLease |
---|
getExpiration, getSerialFormat, renew, setSerialFormat |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void cancel() throws UnknownLeaseException, RemoteException
Lease
UnknownLeaseException
- the lease being cancelled is unknown
to the lease grantor
RemoteException
protected long doRenew(long duration) throws UnknownLeaseException, RemoteException
doRenew
in class AbstractLease
duration
- the requested duration for the lease being renewed
UnknownLeaseException
- indicates the lease does not exist;
typically because the lease has expired.
RemoteException
public LeaseMap createLeaseMap(long duration)
createLeaseMap
in interface Lease
duration
- the duration to put into a Long and use as the
value for the current lease in the created LeaseMap
public boolean canBatch(Lease lease)
canBatch
in interface Lease
lease
- the Lease to be evaluated
public Uuid getReferentUuid()
getReferentUuid
in interface ReferentUuid
Uuid
associated with the
resource this proxy represents. Will not
return null
.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |