|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.matching.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 _clientID,
long _timeStamp,
short _seqNum,
short _incarnationNumber)
Constructs a unique EventId based on the clientID, timeStamp, sequenceNumber and the incarnation associated with the publishing client. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
This method provides a marshalling of the eventID bytes. |
int |
getClientID()
Returns the client ID contained in the eventID |
short |
getIncarnation()
This returns the incarnation number associated with the publishing client. |
short |
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. |
static void |
main(String[] args)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventId(byte[] idBytes)
idBytes - A byte stream representation of the event ID.
public EventId(int _clientID,
long _timeStamp,
short _seqNum,
short _incarnationNumber)
_clientID - The clientID_timeStamp - The timestamp associated with the ID._seqNum - The sequence number_incarnationNumber - The incarnation associated with the publishing
client.| Method Detail |
|---|
public int getClientID()
public long getTimeStamp()
public short getSequenceNumber()
public short getIncarnation()
public String toString()
toString in class Objectpublic byte[] getBytes()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||