|
Public Member Functions |
| StompSessionManager (const std::string &connectionId, transport::Transport *transport) |
virtual | ~StompSessionManager (void) |
virtual connector::SessionInfo * | createSession (cms::Session::AcknowledgeMode ackMode) throw ( exceptions::ActiveMQException ) |
virtual void | removeSession (connector::SessionInfo *session) throw ( exceptions::ActiveMQException ) |
virtual connector::ConsumerInfo * | createConsumer (const cms::Destination *destination, SessionInfo *session, const std::string &selector) throw ( StompConnectorException ) |
virtual connector::ConsumerInfo * | createDurableConsumer (const cms::Destination *destination, SessionInfo *session, const std::string &name, const std::string &selector, bool noLocal) throw ( StompConnectorException ) |
virtual void | removeConsumer (connector::ConsumerInfo *consumer) throw ( StompConnectorException ) |
virtual void | setConsumerMessageListener (ConsumerMessageListener *listener) |
virtual void | onStompCommand (commands::StompCommand *command) throw ( StompConnectorException ) |
Protected Member Functions |
virtual void | setSubscribeOptions (const cms::Destination *destination, commands::SubscribeCommand &command) throw ( StompConnectorException ) |
virtual unsigned int | getNextSessionId (void) |
virtual unsigned int | getNextConsumerId (void) |
Private Types |
typedef std::map< unsigned
int, ConsumerInfo * > | ConsumerMap |
typedef std::map< std::string,
ConsumerMap > | DestinationMap |
Private Attributes |
unsigned int | nextSessionId |
unsigned int | nextConsumerId |
concurrent::Mutex | mutex |
DestinationMap | destinationMap |
transport::Transport * | transport |
ConsumerMessageListener * | messageListener |
std::string | connectionId |