activemq-cpp-3.9.0
cms::EnhancedConnection Class Referenceabstract

An enhanced CMS Connection instance that provides additional features above the default required features of a CMS Connection instance. More...

#include <src/main/cms/EnhancedConnection.h>

Inheritance diagram for cms::EnhancedConnection:

Public Member Functions

virtual ~EnhancedConnection ()
 
virtual cms::DestinationSourcegetDestinationSource ()=0
 Returns the DestinationSource} object which can be used to listen to destinations being created or destroyed or to enquire about the current destinations available on the message Provider. More...
 
- Public Member Functions inherited from cms::Connection
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 ConnectionMetaDatagetMetaData () const =0
 Gets the metadata for this connection. More...
 
virtual SessioncreateSession ()=0
 Creates an AUTO_ACKNOWLEDGE Session. More...
 
virtual SessioncreateSession (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 ExceptionListenergetExceptionListener () 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::MessageTransformergetMessageTransformer () const =0
 Gets the currently configured MessageTransformer for this Connection. More...
 
- Public Member Functions inherited from cms::Startable
virtual ~Startable ()
 
virtual void start ()=0
 Starts the service. More...
 
- Public Member Functions inherited from cms::Stoppable
virtual ~Stoppable ()
 
virtual void stop ()=0
 Stops this service. More...
 
- Public Member Functions inherited from cms::Closeable
virtual ~Closeable ()
 

Detailed Description

An enhanced CMS Connection instance that provides additional features above the default required features of a CMS Connection instance.

Since
3.2

Constructor & Destructor Documentation

virtual cms::EnhancedConnection::~EnhancedConnection ( )
virtual

Member Function Documentation

virtual cms::DestinationSource* cms::EnhancedConnection::getDestinationSource ( )
pure virtual

Returns the DestinationSource} object which can be used to listen to destinations being created or destroyed or to enquire about the current destinations available on the message Provider.

Returns
a new instance of a DestinationSource that is owned by the caller.
Exceptions
CMSExceptionif an error occurs while creating the destination source.

Implemented in activemq::core::ActiveMQConnection.


The documentation for this class was generated from the following file: