public interface XASession
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
XASession. |
FlowReceiver |
createFlow(XMLMessageListener listener,
ConsumerFlowProperties flowProps,
EndpointProperties endpointProps)
Creates a consumer flow within this
XASession and
associates it to this session. |
FlowReceiver |
createFlow(XMLMessageListener listener,
ConsumerFlowProperties flowProps,
EndpointProperties endpointProps,
FlowEventHandler flowEventHandler)
Creates a consumer flow within this
XASession and
associates it to this session. |
XMLMessageProducer |
createProducer(ProducerFlowProperties fprop,
JCSMPStreamingPublishEventHandler callback)
Creates a producer flow within this
XASession and
associates it to this session. |
XMLMessageProducer |
createProducer(ProducerFlowProperties fprop,
JCSMPStreamingPublishEventHandler streamCallback,
JCSMPProducerEventHandler eventCallback)
Creates a producer flow within this
XASession and
associates it to this session. |
XAResource |
getXAResource()
Returns the XAResource for this session.
|
XAResource getXAResource() throws JCSMPException
JCSMPException - If the XASession is closed.FlowReceiver createFlow(XMLMessageListener listener, ConsumerFlowProperties flowProps, EndpointProperties endpointProps) throws JCSMPException
XASession and
associates it to this session.
The semantics and error conditions of this call are identical to
JCSMPSession.createFlow(XMLMessageListener, ConsumerFlowProperties,
EndpointProperties)
JCSMPExceptionFlowReceiver createFlow(XMLMessageListener listener, ConsumerFlowProperties flowProps, EndpointProperties endpointProps, FlowEventHandler flowEventHandler) throws JCSMPException
XASession and
associates it to this session.
The semantics and error conditions of this call are identical to
JCSMPSession.createFlow(XMLMessageListener, ConsumerFlowProperties,
EndpointProperties, FlowEventHandler)
JCSMPExceptionXMLMessageProducer createProducer(ProducerFlowProperties fprop, JCSMPStreamingPublishEventHandler callback) throws JCSMPException
XASession 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.fprop - 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.XMLMessageProducer createProducer(ProducerFlowProperties fprop, JCSMPStreamingPublishEventHandler streamCallback, JCSMPProducerEventHandler eventCallback) throws JCSMPException
XASession 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.fprop - The producer flow properties. Not used and should be null.streamCallback - A stream event handlereventCallback - A producer event handlerInvalidOperationException - If the peer capabilities do not support features requested in
this operation.JCSMPException - On other errors.void close()
throws JCSMPException
XASession. This call closes all subordinate
guaranteed delivery flows (producers / consumers).JCSMPExceptionCopyright 2004-2020 Solace Corporation. All rights reserved.