cgl.narada.wsinfra.wsrm.impl
Class WsrmAckOperationsImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmAckOperationsImpl
All Implemented Interfaces:
WsrmAckOperations

public class WsrmAckOperationsImpl
extends Object
implements 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
static WsrmAckOperations getInstance()
           
 long[] getMessageNumbersToAcknowledge(String sequenceIdentifier, boolean ackRequested, WsrmProtocolStorageOperations wsrmProtocolOps)
          Retrive the set of message numbers that need to be acknowledged for a sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrmAckOperations getInstance()

getAcknowledgementRanges

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

Specified by:
getAcknowledgementRanges in interface WsrmAckOperations

getAcknowledgements

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

Specified by:
getAcknowledgements in interface WsrmAckOperations

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.

Specified by:
getMessageNumbersToAcknowledge in interface WsrmAckOperations
Throws:
WsrmStorageException


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