|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.reliable.events.RdNakInvoiceEntityEvent
public class RdNakInvoiceEntityEvent
This is the invoice event issued by an entity upon detection of missing archival sequences. NAK events trigger the retransmission of the missed event.
| Constructor Summary | |
|---|---|
RdNakInvoiceEntityEvent(byte[] marshalledBytes)
Reconstructing the original event from its serialized representation |
|
RdNakInvoiceEntityEvent(int templateId,
int entityId,
long nakSequence)
Initialize the Nak Invoice Event |
|
RdNakInvoiceEntityEvent(int templateId,
int entityId,
long[] nakSequences)
Initialize the Nak Invoice Event |
|
| Method Summary | |
|---|---|
boolean |
containsNakInfo()
|
boolean |
containsSingleNak()
Allows us to inspect if the event contains a single naknowledgement or multiple ones |
byte[] |
getBytes()
Returns a serialized representation of the event bytes |
int |
getEntityId()
|
long |
getNakSequenceNumber()
|
long[] |
getNakSequenceNumbers()
|
long |
getRetransmissionId()
|
int |
getTemplateId()
|
static void |
main(String[] args)
|
void |
removeNakSequence(long sequenceNumber)
This function is called by the processor |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RdNakInvoiceEntityEvent(int templateId,
int entityId,
long nakSequence)
public RdNakInvoiceEntityEvent(int templateId,
int entityId,
long[] nakSequences)
public RdNakInvoiceEntityEvent(byte[] marshalledBytes)
| Method Detail |
|---|
public int getTemplateId()
public int getEntityId()
public boolean containsSingleNak()
public long getNakSequenceNumber()
public long[] getNakSequenceNumbers()
public long getRetransmissionId()
public byte[] getBytes()
public String toString()
toString in class Objectpublic void removeNakSequence(long sequenceNumber)
public boolean containsNakInfo()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||