cgl.narada.service.reliable.events
Class RdAckInvoiceEntityEvent

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

public class RdAckInvoiceEntityEvent
extends Object

This is the invoice event issued by an entity upon receipt of an archival notification. ACK events are idempotent.


Constructor Summary
RdAckInvoiceEntityEvent(byte[] marshalledBytes)
          Reconstructing the original event from its serialized representation
RdAckInvoiceEntityEvent(int templateId, int entityId, long ackSequence)
          Initialize the Ack Invoice Event
RdAckInvoiceEntityEvent(int templateId, int entityId, long[] ackSequences)
          Initialize the Ack Invoice Event
 
Method Summary
 boolean containsSingleAck()
          Allows us to inspect if the event contains a single acknowledgement or multiple ones
 long getAckSequenceNumber()
           
 long[] getAckSequenceNumbers()
           
 byte[] getBytes()
          Returns a serialized representation of the event bytes
 int getEntityId()
           
 int getTemplateId()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RdAckInvoiceEntityEvent

public RdAckInvoiceEntityEvent(int templateId,
                               int entityId,
                               long ackSequence)
Initialize the Ack Invoice Event


RdAckInvoiceEntityEvent

public RdAckInvoiceEntityEvent(int templateId,
                               int entityId,
                               long[] ackSequences)
Initialize the Ack Invoice Event


RdAckInvoiceEntityEvent

public RdAckInvoiceEntityEvent(byte[] marshalledBytes)
Reconstructing the original event from its serialized representation

Method Detail

getTemplateId

public int getTemplateId()

getEntityId

public int getEntityId()

containsSingleAck

public boolean containsSingleAck()
Allows us to inspect if the event contains a single acknowledgement or multiple ones


getAckSequenceNumber

public long getAckSequenceNumber()

getAckSequenceNumbers

public long[] getAckSequenceNumbers()

getBytes

public byte[] getBytes()
Returns a serialized representation of the event bytes


toString

public String toString()
Overrides:
toString in class Object


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