public class XASessionImpl extends BaseTransactedSessionImpl implements XASession
BaseTransactedSessionImpl.AllowedOperation| Constructor and Description |
|---|
XASessionImpl(XASessionManager mgr,
JCSMPChannelProperties channelProperties) |
addInputStep, addOutputStep, allowOperation, getName, getTransactedSessionId, getTransactionSteps, setNamepublic XASessionImpl(XASessionManager mgr, JCSMPChannelProperties channelProperties)
public JCSMPXMLMessageProducer getMessageProducer()
public void setParent(XASessionImpl parent)
public boolean hasUnboundSubFlows()
public void messageIdRenumbering(PubADManager adMgr)
public XASessionImpl getParent()
public boolean isReady()
public void setIsReady(boolean isReady)
public void checkClosed()
throws ClosedFacilityException
ClosedFacilityExceptionpublic void checkClosedXA()
throws XAException
XAExceptionpublic void checkContext()
throws XAException
XAExceptionpublic XAResource getXAResource() throws JCSMPException
XASessiongetXAResource in interface XASessionJCSMPException - If the XASession is closed.public XASessionManager getXASessionManager()
public int getResponseTimeout()
public boolean beforeEnqueue(FlowHandleImpl fh, XMLMessage deliver)
BaseTransactedSessionImplbeforeEnqueue in class BaseTransactedSessionImplfh - parameterdeliver - parameterpublic void notifyPostReconnect(FlowHandleImpl fh)
BaseTransactedSessionImplnotifyPostReconnect in class BaseTransactedSessionImplfh - parameterpublic void trackMessage(BytesXMLMessage message) throws JCSMPException
JCSMPExceptionpublic FlowReceiver createFlow(XMLMessageListener listener, ConsumerFlowProperties flowProps, EndpointProperties endpointProps) throws JCSMPException
XASessionXASession and
associates it to this session.
The semantics and error conditions of this call are identical to
JCSMPSession.createFlow(XMLMessageListener, ConsumerFlowProperties,
EndpointProperties)
createFlow in interface XASessionJCSMPExceptionpublic FlowReceiver createFlow(XMLMessageListener listener, ConsumerFlowProperties flowProps, EndpointProperties endpointProps, FlowEventHandler flowEventHandler) throws JCSMPException
XASessionXASession and
associates it to this session.
The semantics and error conditions of this call are identical to
JCSMPSession.createFlow(XMLMessageListener, ConsumerFlowProperties,
EndpointProperties, FlowEventHandler)
createFlow in interface XASessionJCSMPExceptionpublic void closeFlow(Closeable flow)
closeFlow in class BaseTransactedSessionImplpublic boolean getExpectsAcks()
getExpectsAcks in class BaseTransactedSessionImplpublic XMLMessageProducer createProducer(ProducerFlowProperties fprop, JCSMPStreamingPublishEventHandler callback) throws JCSMPException
XASessionXASession and
associates it to this session. A maximum of one (1) producer flow may be
created per XASession. Only streaming producers
are allowed, so callback must not be null.createProducer in interface XASessionfprop - The producer flow properties. Not used and should be null.callback - he event handler which has to implement the at least the interface JCSMPStreamingPublishEventHandler.InvalidOperationException - If the peer capabilities do not support features requested in
this operation.JCSMPException - On other errors.public XMLMessageProducer createProducer(ProducerFlowProperties fprop, JCSMPStreamingPublishEventHandler callback, JCSMPProducerEventHandler eventCallback) throws JCSMPException
XASessionXASession and
associates it to this session. A maximum of one (1) producer flow may be
created per XASession. Only streaming producers
are allowed, so callback must not be null.createProducer in interface XASessionfprop - The producer flow properties. Not used and should be null.callback - A stream event handlereventCallback - A producer event handlerInvalidOperationException - If the peer capabilities do not support features requested in
this operation.JCSMPException - On other errors.public void close()
XASessionXASession. This call closes all subordinate
guaranteed delivery flows (producers / consumers).public void close(JCSMPException e)
public void resetTransactionSteps()
public void notifyVridChange()
notifyVridChange in class BaseTransactedSessionImplpublic void notifyUnknownName()
notifyUnknownName in class BaseTransactedSessionImplpublic void handleUnrecoverableException(JCSMPException e)
public void notifyFlowRebindFinished()
throws JCSMPException
JCSMPExceptionpublic void triggerRequestRetransmit()
throws JCSMPException
JCSMPExceptionpublic long doOpenXASession(boolean onReconnect)
throws JCSMPException
onReconnect - - indicates if this has been called as part of
reconnect. Note: If not on reconnect then the XA session will be ready
after receiving an open response. For reconnect it will be started
later.JCSMPExceptionpublic void processOpenXASessionResponse(AssuredCtrlHeaderBean adctrl) throws JCSMPException
JCSMPExceptionpublic long doResumeXASession()
throws JCSMPException
JCSMPExceptionpublic void processResumeXASessionResponse(AssuredCtrlHeaderBean adctrl) throws JCSMPException
JCSMPExceptionpublic void doCloseXASession(JCSMPException ex) throws JCSMPException
JCSMPExceptionpublic String getNetworkInfoString()
public boolean isXA()
isXA in class BaseTransactedSessionImplCopyright 2004-2019 Solace Corporation. All rights reserved.