|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mercury.EventID
class EventID
The EventID
class is used to represent a unique event
registration. This class maintains the two pieces of information
that make a registration unique: the event's source and ID attributes.
It's used by the mailbox code in order to maintain a list
of EventIDs that caused an UnknownEventException
to be received during an event notification attempt for a given event.
Field Summary | |
---|---|
private long |
id
The event ID. |
private static long |
serialVersionUID
|
private Object |
source
The event source |
Constructor Summary | |
---|---|
EventID(Object source,
long id)
Simple constructor that assigns the provided arguments to the appropriate internal fields |
|
EventID(RemoteEvent evt)
Convenience constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Return true if the given object is equal to this object
and false otherwise. |
int |
hashCode()
|
private void |
init(Object source,
long id)
Convenience initialization method. |
private void |
readObject(ObjectInputStream stream)
Initialize id field using default semantics but
then unmarshal the value of source from the stream. |
String |
toString()
|
private void |
writeObject(ObjectOutputStream stream)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private transient Object source
private long id
Constructor Detail |
---|
public EventID(Object source, long id)
public EventID(RemoteEvent evt)
RemoteEvent
argument.
IllegalArgumentException
- if a null argument is providedMethod Detail |
---|
private void init(Object source, long id)
IllegalArgumentException
- if a null source argument is provided.public boolean equals(Object o)
this
object
and false otherwise. Two EventID
objects are considered
equal if their source and ID attributes are equal.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
private void writeObject(ObjectOutputStream stream) throws IOException
IOException
- if an I/O error occursprivate void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
id
field using default semantics but
then unmarshal the value of source
from the stream.
IOException
- if an I/O error occurs
ClassNotFoundException
- if a class of a serialized object
cannot be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |