cgl.narada.wsinfra.wsrm
Interface WsrmElementCreation

All Known Implementing Classes:
WsrmElementCreationImpl

public interface WsrmElementCreation

This is a class which facilitates the creation of WSRM elements that are added to exchanges.


Method Summary
 SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange newAcknowledgementRange(long upperMessageNumber, long lowerMessageNumber)
          Create a new acknowledgement range based on the specified parameters
 AckRequestedDocument newAckRequested(String identifier)
          Creates an AckRequested document based on the specified parameters
 AckRequestedDocument newAckRequested(String identifier, long maxMessageNumberUsed)
          Creates an AckRequested document based on the specified parameters
 SequenceDocument newSequence(String identifier, long messageNumber)
          Creates a sequence document based on the specified parameters
 SequenceDocument newSequence(String identifier, long messageNumber, boolean lastMessage, Calendar expiresAt)
          Creates a sequence document based on the specified parameters
 SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier, long[] ackArray, boolean positiveAcks)
          Creates a SequenceAcknowledgement element based on the specified parameters.
 TerminateSequenceDocument newTerminateSequence(String identifier)
          Terminates a sequence identified the specified identifier
 

Method Detail

newSequence

SequenceDocument newSequence(String identifier,
                             long messageNumber)
Creates a sequence document based on the specified parameters


newSequence

SequenceDocument newSequence(String identifier,
                             long messageNumber,
                             boolean lastMessage,
                             Calendar expiresAt)
Creates a sequence document based on the specified parameters


newAckRequested

AckRequestedDocument newAckRequested(String identifier)
Creates an AckRequested document based on the specified parameters


newAckRequested

AckRequestedDocument newAckRequested(String identifier,
                                     long maxMessageNumberUsed)
Creates an AckRequested document based on the specified parameters


newSequenceAcknowledgement

SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier,
                                                           long[] ackArray,
                                                           boolean positiveAcks)
Creates a SequenceAcknowledgement element based on the specified parameters. If postiveAcks is true, then the SequenceACK contains positive acknowledgements otherwise it contains negative acknowledgements. The specification forbids inclusion of both positive and negative acknowledgements.


newAcknowledgementRange

SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange newAcknowledgementRange(long upperMessageNumber,
                                                                                                     long lowerMessageNumber)
Create a new acknowledgement range based on the specified parameters


newTerminateSequence

TerminateSequenceDocument newTerminateSequence(String identifier)
Terminates a sequence identified the specified identifier



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