activemq-cpp-3.9.0
|
The XAConnection interface defines an extended Connection type that is used to create XASession objects. More...
#include <src/main/cms/XAConnection.h>
Public Member Functions | |
virtual | ~XAConnection () |
virtual XASession * | createXASession ()=0 |
Creates an XASession object. More... | |
![]() | |
virtual | ~Connection () |
virtual void | close ()=0 |
Closes this connection as well as any Sessions created from it (and those Sessions' consumers and producers). More... | |
virtual const ConnectionMetaData * | getMetaData () const =0 |
Gets the metadata for this connection. More... | |
virtual Session * | createSession ()=0 |
Creates an AUTO_ACKNOWLEDGE Session. More... | |
virtual Session * | createSession (Session::AcknowledgeMode ackMode)=0 |
Creates a new Session to work for this Connection using the specified acknowledgment mode. More... | |
virtual std::string | getClientID () const =0 |
Get the Client Id for this session, the client Id is provider specific and is either assigned by the connection factory or set using the setClientID method. More... | |
virtual void | setClientID (const std::string &clientID)=0 |
Sets the client identifier for this connection. More... | |
virtual ExceptionListener * | getExceptionListener () const =0 |
Gets the registered Exception Listener for this connection. More... | |
virtual void | setExceptionListener (ExceptionListener *listener)=0 |
Sets the registered Exception Listener for this connection. More... | |
virtual void | setMessageTransformer (cms::MessageTransformer *transformer)=0 |
Set an MessageTransformer instance that is passed on to all Session objects created from this Connection. More... | |
virtual cms::MessageTransformer * | getMessageTransformer () const =0 |
Gets the currently configured MessageTransformer for this Connection. More... | |
![]() | |
virtual | ~Startable () |
virtual void | start ()=0 |
Starts the service. More... | |
![]() | |
virtual | ~Stoppable () |
virtual void | stop ()=0 |
Stops this service. More... | |
![]() | |
virtual | ~Closeable () |
The XAConnection interface defines an extended Connection type that is used to create XASession objects.
This is an optional interface and CMS providers are allowed to omit an implementation and instead throw an exception from an XAConnectionFactory stub to indicate that XA is not supported.
|
virtual |
|
pure virtual |
Creates an XASession object.
CMSException | If the XAConnection object fails to create the XASession instance due to an internal error. |
Implemented in activemq::core::ActiveMQXAConnection.