cgl.narada.service.reliable.events
Class RdAckResponseServiceInvoiceEvent

java.lang.Object
  extended by cgl.narada.service.reliable.events.RdAckResponseServiceInvoiceEvent

public class RdAckResponseServiceInvoiceEvent
extends Object

This event is issued by the reliable delivery service, in response to the ACKs that it has received so far from the entity. The ACKResponse contains among other things, information regarding (a) sync-point advance for the entity. (b) missed sequences. The acknowledgements might be lost in transit - the reliable delivery service considers these events to have been lost in transit.


Constructor Summary
RdAckResponseServiceInvoiceEvent(byte[] marshalledBytes)
           
RdAckResponseServiceInvoiceEvent(int templateId, int entityId, long sync)
           
 
Method Summary
 boolean containsMissedSequenceInfo()
          Indicates if this event encapsulates Nak information
 boolean containsSingleSequenceInfo()
          Iff this event encapsulates Nak information, this method indicates if the entity has missed a single sequence or multiple sequences
 byte[] getBytes()
          Gets the serialized representation of the event
 int getEntityId()
           
 long getMissedSequence()
          Returns the missed sequence.
 long[] getMissedSequences()
          Returns the missed sequences.
 long getSyncpoint()
          Retrieves the sync point associated with the entity in question.
 int getTemplateId()
           
 void setMissedSequence(long missedSequence)
          Sets the missing sequence information
 void setMissedSequences(long[] missedSequences)
          Sets information pertaining to multiple missed sequences
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RdAckResponseServiceInvoiceEvent

public RdAckResponseServiceInvoiceEvent(int templateId,
                                        int entityId,
                                        long sync)

RdAckResponseServiceInvoiceEvent

public RdAckResponseServiceInvoiceEvent(byte[] marshalledBytes)
Method Detail

getTemplateId

public int getTemplateId()

getEntityId

public int getEntityId()

getSyncpoint

public long getSyncpoint()
Retrieves the sync point associated with the entity in question.


containsMissedSequenceInfo

public boolean containsMissedSequenceInfo()
Indicates if this event encapsulates Nak information


containsSingleSequenceInfo

public boolean containsSingleSequenceInfo()
Iff this event encapsulates Nak information, this method indicates if the entity has missed a single sequence or multiple sequences


getMissedSequence

public long getMissedSequence()
Returns the missed sequence. Will return 0 if there are is no missed sequence or if there are multiple missed sequences


setMissedSequence

public void setMissedSequence(long missedSequence)
Sets the missing sequence information


getMissedSequences

public long[] getMissedSequences()
Returns the missed sequences. Will return null, if there is no missed sequence or if there are no multiple missed sequences


setMissedSequences

public void setMissedSequences(long[] missedSequences)
Sets information pertaining to multiple missed sequences


getBytes

public byte[] getBytes()
Gets the serialized representation of the event


toString

public String toString()
Overrides:
toString in class Object


For comments and suggestions please send e-mail to The NaradaBrokering Project