Class OutboundSequence

java.lang.Object
com.sun.xml.ws.rx.rm.runtime.sequence.AbstractSequence
com.sun.xml.ws.rx.rm.runtime.sequence.OutboundSequence
All Implemented Interfaces:
Sequence

public final class OutboundSequence extends AbstractSequence
Outbound sequence implementation
Author:
Marek Potociar (marek.potociar at sun.com)
  • Field Details

    • INITIAL_LAST_MESSAGE_ID

      public static final long INITIAL_LAST_MESSAGE_ID
      See Also:
  • Constructor Details

  • Method Details

    • registerMessage

      public void registerMessage(ApplicationMessage message, boolean storeMessageFlag) throws DuplicateMessageRegistrationException, AbstractSoapFaultException
      Description copied from interface: Sequence
      Registers given message with the sequence
      Parameters:
      message - application message to be registered
      storeMessageFlag - boolean flag indicating whether message should be stored until acknowledged or not
      Throws:
      DuplicateMessageRegistrationException - in case a message with such message number has already been registered with the sequence
      AbstractSoapFaultException - in a case the sequence is closed or terminated
    • acknowledgeMessageNumber

      public void acknowledgeMessageNumber(long messageId)
      Description copied from interface: Sequence
      Marks given message number with the sequence as aknowledged
      Parameters:
      messageId - message number to be acknowledged
    • acknowledgeMessageNumbers

      public void acknowledgeMessageNumbers(List<Sequence.AckRange> ranges) throws AbstractSoapFaultException
      Description copied from interface: Sequence
      Marks given message numbers with the sequence as aknowledged
      Parameters:
      ranges - message number ranges to be acknowledged
      Throws:
      AbstractSoapFaultException - in case the sequence is terminated