#include <ActiveMQConnection.h>
Inheritance diagram for activemq::core::ActiveMQConnection:
Public Member Functions | |
ActiveMQConnection (ActiveMQConnectionData *connectionData) | |
virtual | ~ActiveMQConnection (void) |
virtual cms::Session * | createSession (void) throw ( cms::CMSException ) |
virtual cms::Session * | createSession (cms::Session::AcknowledgeMode ackMode) throw ( cms::CMSException ) |
virtual std::string | getClientId (void) const |
virtual ActiveMQConnectionData * | getConnectionData (void) |
virtual cms::ExceptionListener * | getExceptionListener (void) const |
virtual void | setExceptionListener (cms::ExceptionListener *listener) |
virtual void | close (void) throw ( cms::CMSException ) |
virtual void | start (void) throw ( cms::CMSException ) |
virtual void | stop (void) throw ( cms::CMSException ) |
virtual void | addMessageListener (const unsigned int consumerId, ActiveMQMessageListener *listener) |
virtual void | removeMessageListener (const unsigned int consumerId) |
Private Member Functions | |
void | fire (exceptions::ActiveMQException &ex) |
virtual void | onConsumerMessage (connector::ConsumerInfo *consumer, core::ActiveMQMessage *message) |
Private Attributes | |
cms::ExceptionListener * | exceptionListener |
ActiveMQConnectionData * | connectionData |
bool | started |
bool | closed |
std::map< unsigned int, ActiveMQMessageListener * > | consumers |
concurrent::Mutex | mutex |
|
Constructor
|
|
|
|
Adds the ActiveMQMessageListener to the Mapping of Consumer Id's to listeners, all message to that id will be routed to the given listener
|
|
Close the currently open connection
|
|
Creates a new Session to work for this Connection using the specified acknowledgment mode
|
|
Creates a new Session to work for this Connection
|
|
Notify the excpetion listener
|
|
Get the Client Id for this session
|
|
Retrieves the Connection Data object for this object.
|
|
Gets the registered Exception Listener for this connection
|
|
Called to dispatch a message to a particular consumer.
Implements activemq::connector::ConsumerMessageListener. |
|
Remove the Listener for the specified Consumer Id
|
|
Sets the registed Exception Listener for this connection
|
|
Starts or (restarts) a connections delivery of incoming messages
|
|
Stop the flow of incoming messages
|
|
|
|
|
|
|
|
|
|
|
|
|