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

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

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

Inheritance diagram for activemq::cmsutil::DestinationResolver:

Public Member Functions

virtual ~DestinationResolver ()
virtual void init (ResourceLifecycleManager *mgr)=0
 Initializes this destination resolver for use.
virtual void destroy ()=0
 Destroys any allocated resources.
virtual cms::DestinationresolveDestinationName (cms::Session *session, const std::string &destName, bool pubSubDomain)=0
 Resolves the given name to a destination.

Detailed Description

Resolves a CMS destination name to a Destination.

Constructor & Destructor Documentation

virtual activemq::cmsutil::DestinationResolver::~DestinationResolver ( )
virtual

Member Function Documentation

virtual void activemq::cmsutil::DestinationResolver::destroy ( )
pure virtual

Destroys any allocated resources.

Implemented in activemq::cmsutil::DynamicDestinationResolver.

virtual void activemq::cmsutil::DestinationResolver::init ( ResourceLifecycleManager mgr)
pure virtual

Initializes this destination resolver for use.

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

Parameters
mgrthe resource lifecycle manager.

Implemented in activemq::cmsutil::DynamicDestinationResolver.

virtual cms::Destination* activemq::cmsutil::DestinationResolver::resolveDestinationName ( cms::Session session,
const std::string &  destName,
bool  pubSubDomain 
)
pure 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.

Implemented in activemq::cmsutil::DynamicDestinationResolver.


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