|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.reliable.events.RdArchivalServiceNotification
public class RdArchivalServiceNotification
This class encapsulates the notification issued by the reliable service after it has archived an event. Among other things, the event contains information pertaining to (a) The event id of the archived event (b) The sequence number of the archived event (c) The sequence number of previously archived events (d) The template id
| Constructor Summary | |
|---|---|
RdArchivalServiceNotification(byte[] marshalledBytes)
Reconstruction of the event from the serialized byte stream representation |
|
RdArchivalServiceNotification(int templateId,
EventID eventId,
long sequenceNumber,
long previousSequenceNumber)
|
|
| Method Summary | |
|---|---|
int |
compare(Object one,
Object two)
For this implementation it is assumed that the entity id and template id of the compared objects are the same. |
boolean |
equals(Object obj)
For this implementation it is assumed that the entity id and template id of the compared object is the same |
byte[] |
getBytes()
Create a serialized representation of the byte stream |
EventID |
getEventId()
Retriev the event identifier of the archived event |
long |
getPreviousSequenceNumber()
Retrieves the previous sequence number for this event |
long |
getSequenceNumber()
Retrieves the sequence number for this event |
int |
getTemplateId()
Retrieves the templateId of the archived event |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RdArchivalServiceNotification(int templateId,
EventID eventId,
long sequenceNumber,
long previousSequenceNumber)
public RdArchivalServiceNotification(byte[] marshalledBytes)
| Method Detail |
|---|
public int getTemplateId()
public EventID getEventId()
public long getSequenceNumber()
public long getPreviousSequenceNumber()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in interface Comparatorequals in class Object
public int compare(Object one,
Object two)
compare in interface Comparatorpublic byte[] getBytes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||