com.sun.xml.ws.rx.rm.runtime
Class ApplicationMessageBase

java.lang.Object
  extended by com.sun.xml.ws.rx.message.RxMessageBase
      extended by com.sun.xml.ws.rx.rm.runtime.ApplicationMessageBase
All Implemented Interfaces:
RxMessage, ApplicationMessage
Direct Known Subclasses:
JaxwsApplicationMessage

public abstract class ApplicationMessageBase
extends RxMessageBase
implements ApplicationMessage

Author:
Marek Potociar

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.rx.message.RxMessage
RxMessage.State
 
Constructor Summary
protected ApplicationMessageBase(int initialResendCounterValue, String correlationId, String sequenceId, long messageNumber, AcknowledgementData acknowledgementData)
           
protected ApplicationMessageBase(String correlationId)
           
protected ApplicationMessageBase(String correlationId, String sequenceId, long messageNumber, AcknowledgementData acknowledgementData)
           
 
Method Summary
 AcknowledgementData getAcknowledgementData()
          Returns acknowledgement data attached to the message
 long getMessageNumber()
          Returns message number within a given sequence of this message
 int getNextResendCount()
          Retrieves number of the next resend attempt
 String getSequenceId()
          Returns identifier of a sequence this message is associated with
 void setAcknowledgementData(AcknowledgementData data)
          Sets acknowledgement data attached to the message
 void setSequenceData(String sequenceId, long messageNumber)
          Sets reliable messaging sequence data for this message.
 
Methods inherited from class com.sun.xml.ws.rx.message.RxMessageBase
getCorrelationId, toBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.rx.message.RxMessage
getCorrelationId, getState, toBytes
 

Constructor Detail

ApplicationMessageBase

protected ApplicationMessageBase(@NotNull
                                 String correlationId)

ApplicationMessageBase

protected ApplicationMessageBase(@NotNull
                                 String correlationId,
                                 String sequenceId,
                                 long messageNumber,
                                 AcknowledgementData acknowledgementData)

ApplicationMessageBase

protected ApplicationMessageBase(int initialResendCounterValue,
                                 @NotNull
                                 String correlationId,
                                 String sequenceId,
                                 long messageNumber,
                                 AcknowledgementData acknowledgementData)
Method Detail

getAcknowledgementData

public AcknowledgementData getAcknowledgementData()
Description copied from interface: ApplicationMessage
Returns acknowledgement data attached to the message

Specified by:
getAcknowledgementData in interface ApplicationMessage
Returns:
acknowledgement data attached to the message

getMessageNumber

public long getMessageNumber()
Description copied from interface: ApplicationMessage
Returns message number within a given sequence of this message

Specified by:
getMessageNumber in interface ApplicationMessage
Returns:
sequence message number of this message

getSequenceId

public String getSequenceId()
Description copied from interface: ApplicationMessage
Returns identifier of a sequence this message is associated with

Specified by:
getSequenceId in interface ApplicationMessage
Returns:
associated sequence identifier

setAcknowledgementData

public void setAcknowledgementData(AcknowledgementData data)
Description copied from interface: ApplicationMessage
Sets acknowledgement data attached to the message

Specified by:
setAcknowledgementData in interface ApplicationMessage
Parameters:
data - acknowledgement data attached to the message

setSequenceData

public void setSequenceData(String sequenceId,
                            long messageNumber)
Description copied from interface: ApplicationMessage
Sets reliable messaging sequence data for this message.

Specified by:
setSequenceData in interface ApplicationMessage
Parameters:
sequenceId - identifier of a sequence this message is associated with
messageNumber - message number within a given RM sequence

getNextResendCount

public int getNextResendCount()
Description copied from interface: ApplicationMessage
Retrieves number of the next resend attempt

Specified by:
getNextResendCount in interface ApplicationMessage
Returns:
number of the next resend attempt


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.