activemq-cpp-3.6.0
activemq::cmsutil::DynamicDestinationResolver Class Reference

Resolves a CMS destination name to a Destination. More...

#include <src/main/activemq/cmsutil/DynamicDestinationResolver.h>

Inheritance diagram for activemq::cmsutil::DynamicDestinationResolver:

Data Structures

class  SessionResolver
 Manages maps of names to topics and queues for a single session.

Public Member Functions

 DynamicDestinationResolver ()
virtual ~DynamicDestinationResolver ()
virtual void init (ResourceLifecycleManager *mgr)
 Initializes this destination resolver for use.
virtual void destroy ()
 Destroys any allocated resources.
virtual cms::DestinationresolveDestinationName (cms::Session *session, const std::string &destName, bool pubSubDomain)
 Resolves the given name to a destination.
- Public Member Functions inherited from activemq::cmsutil::DestinationResolver
virtual ~DestinationResolver ()

Detailed Description

Resolves a CMS destination name to a Destination.

Constructor & Destructor Documentation

activemq::cmsutil::DynamicDestinationResolver::DynamicDestinationResolver ( )
virtual activemq::cmsutil::DynamicDestinationResolver::~DynamicDestinationResolver ( )
virtual

Member Function Documentation

virtual void activemq::cmsutil::DynamicDestinationResolver::destroy ( )
virtual

Destroys any allocated resources.

Implements activemq::cmsutil::DestinationResolver.

virtual void activemq::cmsutil::DynamicDestinationResolver::init ( ResourceLifecycleManager mgr)
inlinevirtual

Initializes this destination resolver for use.

Ensures that any previously allocated resources are first destroyed (e.g. calls destroy()).

Parameters
mgrthe resource lifecycle manager.

Implements activemq::cmsutil::DestinationResolver.

virtual cms::Destination* activemq::cmsutil::DynamicDestinationResolver::resolveDestinationName ( cms::Session session,
const std::string &  destName,
bool  pubSubDomain 
)
virtual

Resolves the given name to a destination.

If pubSubDomain is true, a topic will be returned, otherwise a queue will be returned.

Parameters
sessionthe session for which to retrieve resolve the destination.
destNamethe name to be resolved.
pubSubDomainIf true, the name will be resolved to a Topic, otherwise a Queue.
Returns
the resolved destination
Exceptions
cms::CMSExceptionif resolution failed.

Implements activemq::cmsutil::DestinationResolver.


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