casa.JION.event
Class EventRegistration

java.lang.Object
  extended by net.jini.core.event.EventRegistration
      extended by casa.JION.event.EventRegistration
All Implemented Interfaces:
java.io.Serializable

public class EventRegistration
extends net.jini.core.event.EventRegistration

A utility class for use as a return value for event-interest registration methods. Objects of this class are meant to encapsulate the information needed by a client to identify a notification as a response to a registration request and to maintain that registration request. It is not mandatory for an event-interest registration method to use this class.

A registration of interest in some kind of event that occurs within the scope of a transaction is leased in the same way as other event interest registrations. However, the duration of the registration is the minimum of the length of the lease and the duration of the transaction. Simply put, when the transaction ends (either because of a commit or an abort) the interest registration also ends. This is true even if the lease for the event registration has not expired and no call has been made to cancel the lease.

Since:
1.0
Author:
Sun Microsystems, Inc.
See Also:
Serialized Form

Constructor Summary
EventRegistration(long eventID, java.lang.Object source, net.jini.core.lease.Lease lease, long seqNum)
          Constructs an EventRegistration object.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class net.jini.core.event.EventRegistration
getID, getLease, getSequenceNumber, getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventRegistration

public EventRegistration(long eventID,
                         java.lang.Object source,
                         net.jini.core.lease.Lease lease,
                         long seqNum)
Constructs an EventRegistration object.

Parameters:
eventID - a long representing the event identifier
source - an Object representing the event source
lease - the registration Lease object
seqNum - a long representing the current sequence number
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object