cgl.narada.wsinfra.wsrm
Interface WsrmAckOperations

All Known Implementing Classes:
WsrmAckOperationsImpl

public interface WsrmAckOperations

A utility class to deal with processing acknowledgements.


Method Summary
 SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange[] getAcknowledgementRanges(long[] acknowledgements)
          Construct acknowledgement ranges based on the specified acknowledgements.
 long[] getAcknowledgements(SequenceAcknowledgementDocument seqAckDocument)
          Retrieve the list of positive acknowledgements from the specified sequenceAcknowledgement document
 long[] getMessageNumbersToAcknowledge(String sequenceIdentifier, boolean ackRequested, WsrmProtocolStorageOperations wsrmProtocolOps)
          Retrive the set of message numbers that need to be acknowledged for a sequence.
 

Method Detail

getAcknowledgementRanges

public SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange[] getAcknowledgementRanges(long[] acknowledgements)
Construct acknowledgement ranges based on the specified acknowledgements.


getAcknowledgements

public long[] getAcknowledgements(SequenceAcknowledgementDocument seqAckDocument)
Retrieve the list of positive acknowledgements from the specified sequenceAcknowledgement document


getMessageNumbersToAcknowledge

public long[] getMessageNumbersToAcknowledge(String sequenceIdentifier,
                                             boolean ackRequested,
                                             WsrmProtocolStorageOperations wsrmProtocolOps)
                                      throws WsrmStorageException
Retrive the set of message numbers that need to be acknowledged for a sequence. The set of message mnumbers returned is the union of two sets
(a)The message numbers that have already been acknowledged so far.
(b)The set of unacknowledged message numbers. If the ackRequested variable is false, the message numbers included with this set are those for which the ackInterval has expired.
If the ackRequested variable if it is true, THEN the ackInterval constraint is ignored, and ALL message numbers that have not been acknowledged are included in the set.

Throws:
WsrmStorageException