|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.event.EventID
public class EventID
The EventID is an ID which is unique in space and time. Using the event ID we can decipher if the event was an earlier event or a later event. This is what provides us with information pertaining to duplicate detection.
| Constructor Summary | |
|---|---|
EventID(byte[] idBytes)
This constructor provides for the unmarshalling of the eventID bytes that are received over a link |
|
EventID(int _entityID,
long _timeStamp,
int _seqNum)
Constructs a unique EventID based on the entityID, timeStamp, sequenceNumber and the incarnation associated with the publishing entity. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares two objects for equality. |
byte[] |
getBytes()
This method provides a marshalling of the eventID bytes. |
int |
getEntityID()
Returns the entity ID contained in the eventID |
int |
getSequenceNumber()
This method returns the sequence number associated with the eventID instance. |
long |
getTimeStamp()
This method returns the timeStamp that is associated with the eventID. |
int |
hashCode()
Generates a hash code for the receiver. |
static void |
main(String[] args)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventID(byte[] idBytes)
idBytes - A byte stream representation of the event ID.
public EventID(int _entityID,
long _timeStamp,
int _seqNum)
_entityID - The entityID_timeStamp - The timestamp associated with the ID._seqNum - The sequence number| Method Detail |
|---|
public int getEntityID()
public long getTimeStamp()
public int getSequenceNumber()
public String toString()
toString in class Objectpublic byte[] getBytes()
public boolean equals(Object obj)
equals in class Objectobj - the Object to compare with
Hashtablepublic int hashCode()
hashCode in class Objectpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||