activemq-cpp-3.4.0
|
Resolves a CMS destination name to a Destination
.
More...
#include <src/main/activemq/cmsutil/DestinationResolver.h>
Public Member Functions | |
virtual | ~DestinationResolver () throw () |
virtual void | init (ResourceLifecycleManager *mgr)=0 |
Initializes this destination resolver for use. | |
virtual void | destroy ()=0 |
Destroys any allocated resources. | |
virtual cms::Destination * | resolveDestinationName (cms::Session *session, const std::string &destName, bool pubSubDomain)=0 |
Resolves the given name to a destination. |
Resolves a CMS destination name to a Destination
.
virtual activemq::cmsutil::DestinationResolver::~DestinationResolver | ( | ) | throw () [inline, virtual] |
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()).
mgr | the 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.
session | the session for which to retrieve resolve the destination. |
destName | the name to be resolved. |
pubSubDomain | If true, the name will be resolved to a Topic, otherwise a Queue. |
cms::CMSException | if resolution failed. |
Implemented in activemq::cmsutil::DynamicDestinationResolver.