GigaSpaces XAP 8.0 API
Class ExpirationWarningEvent

  extended by java.util.EventObject
      extended by net.jini.core.event.RemoteEvent
          extended by
All Implemented Interfaces:

public class ExpirationWarningEvent
extends RemoteEvent

Event generated by a lease renewal set when its lease is about to expire.

Sun Microsystems, Inc.
See Also:
LeaseRenewalSet, Serialized Form

Field Summary
Fields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source
Constructor Summary
ExpirationWarningEvent(LeaseRenewalSet source, long seqNum, MarshalledObject handback)
          Simple constructor.
Method Summary
 Lease getRenewalSetLease()
          Convenience method to retrieve the Lease associated with the source of this event.
Methods inherited from class net.jini.core.event.RemoteEvent
getID, getRegistrationObject, getSequenceNumber
Methods inherited from class java.util.EventObject
getSource, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ExpirationWarningEvent(LeaseRenewalSet source,
                              long seqNum,
                              MarshalledObject handback)
Simple constructor. Note event id is fixed to LeaseRenewalSet.EXPIRATION_WARNING_EVENT_ID.

source - the LeaseRenewalSet that generated the event
seqNum - the sequence number of this event
handback - the MarshalledObject passed in as part of the event registration
Method Detail


public Lease getRenewalSetLease()
Convenience method to retrieve the Lease associated with the source of this event. This is the Lease which is about to expire.

The Lease object returned will be equivalent (in the sense of equals) to other Lease objects associated with the set, but may not be the same object. One notable consequence of having two different objects is that the getExpiration method of the Lease object returned by this method may return a different time than the getExpiration methods of other Lease objects granted on the same set.

The expiration time associated with the Lease object returned by this method will reflect the expiration the lease had when the event occurred. Renewal calls may have changed the expiration time of the underlying lease between the time when the event was generated and when it was delivered.

the lease associated with the source of this event

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.