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

java.lang.Object
  extended by com.oracle.webservices.api.message.BasePropertySet
      extended by com.oracle.webservices.oracle_internal_api.rm.InboundAccepted
          extended by com.sun.xml.ws.rx.rm.runtime.InboundAcceptedImpl
All Implemented Interfaces:
PropertySet

public class InboundAcceptedImpl
extends InboundAccepted


Nested Class Summary
 
Nested classes/interfaces inherited from class com.oracle.webservices.api.message.BasePropertySet
BasePropertySet.Accessor, BasePropertySet.PropertyMap, BasePropertySet.PropertyMapEntry
 
Nested classes/interfaces inherited from interface com.oracle.webservices.api.message.PropertySet
PropertySet.Property
 
Field Summary
 
Fields inherited from class com.oracle.webservices.oracle_internal_api.rm.InboundAccepted
ACCEPTED_PROPERTY, RM_MESSAGE_NUMBER_PROPERTY, RM_SEQUENCE_ID_PROPERTY
 
Constructor Summary
InboundAcceptedImpl(JaxwsApplicationMessage request, RuntimeContext rc)
           
 
Method Summary
 Boolean getAccepted()
           
 long getRMMessageNumber()
           
 String getRMSequenceId()
           
 void setAccepted(Boolean accept)
          When the user determines that the message has been delivered to them then they call #setAccepted(true).
 
Methods inherited from class com.oracle.webservices.oracle_internal_api.rm.InboundAccepted
getPropertyMap
 
Methods inherited from class com.oracle.webservices.api.message.BasePropertySet
asMap, containsKey, createEntrySet, createMapView, createView, get, mapAllowsAdditionalProperties, parse, put, remove, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InboundAcceptedImpl

public InboundAcceptedImpl(JaxwsApplicationMessage request,
                           RuntimeContext rc)
Method Detail

setAccepted

public void setAccepted(Boolean accept)
                 throws InboundAcceptedAcceptFailed
Description copied from class: InboundAccepted

When the user determines that the message has been delivered to them then they call #setAccepted(true).

The RMD will not acknowledge the message to the RMS until #setAccepted(true) is called.

If the user calls #setAccepted(false) then the RMD will not acknowledge the delivery of this particular request. Note: if the RMS sends a retry, that is considered a new request and the delivery/acceptance process starts anew.

If the user calls #setAccepted(false) and an atomic transaction is being used to handle the message, then that transaction will be rolled back.

Specified by:
setAccepted in class InboundAccepted
Throws:
InboundAcceptedAcceptFailed
See Also:
InboundAccepted.ACCEPTED_PROPERTY, InboundAccepted.getAccepted()

getAccepted

public Boolean getAccepted()
Specified by:
getAccepted in class InboundAccepted
Returns:
the value set via InboundAccepted.setAccepted(java.lang.Boolean) or null if InboundAccepted.setAccepted(java.lang.Boolean) has not been called or if the call to InboundAccepted.setAccepted(java.lang.Boolean) resulted in InboundAcceptedAcceptFailed being thrown.
See Also:
InboundAccepted.ACCEPTED_PROPERTY, InboundAccepted.setAccepted(java.lang.Boolean)

getRMSequenceId

public String getRMSequenceId()
Specified by:
getRMSequenceId in class InboundAccepted
Returns:
The RM sequence id associated with the message. Note: it may be null if RM is not enabled.
See Also:
InboundAccepted.RM_SEQUENCE_ID_PROPERTY

getRMMessageNumber

public long getRMMessageNumber()
Specified by:
getRMMessageNumber in class InboundAccepted
Returns:
The RM message number associated with the message. Note: it may be -1 if RM is not enabled.
See Also:
InboundAccepted.RM_MESSAGE_NUMBER_PROPERTY


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