17#ifndef _ACTIVEMQ_CMSUTIL_DYNAMICDESTINATIONRESOLVER_H_
18#define _ACTIVEMQ_CMSUTIL_DYNAMICDESTINATIONRESOLVER_H_
37 class SessionResolver {
47 SessionResolver(
const SessionResolver&);
48 SessionResolver& operator=(
const SessionResolver&);
53 : resourceLifecycleManager( resourceLifecycleManager ),
59 virtual ~SessionResolver() {}
61 cms::Topic* getTopic(
const std::string& topicName);
63 cms::Queue* getQueue(
const std::string& queueName);
79 DynamicDestinationResolver(
const DynamicDestinationResolver&);
80 DynamicDestinationResolver& operator=(
const DynamicDestinationResolver&);
94 this->resourceLifecycleManager = mgr;
118 const std::string& destName,
#define AMQCPP_API
Definition Config.h:30
Resolves a CMS destination name to a Destination.
Definition DestinationResolver.h:36
virtual void destroy()
Destroys any allocated resources.
DynamicDestinationResolver()
virtual ~DynamicDestinationResolver()
virtual void init(ResourceLifecycleManager *mgr)
Initializes this destination resolver for use.
Definition DynamicDestinationResolver.h:88
virtual cms::Destination * resolveDestinationName(cms::Session *session, const std::string &destName, bool pubSubDomain)
Resolves the given name to a destination.
Manages the lifecycle of a set of CMS resources.
Definition ResourceLifecycleManager.h:37
A Destination object encapsulates a provider-specific address.
Definition Destination.h:39
An interface encapsulating a provider-specific queue name.
Definition Queue.h:37
A Session object is a single-threaded context for producing and consuming messages.
Definition Session.h:105
An interface encapsulating a provider-specific topic name.
Definition Topic.h:36
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition StlMap.h:48
Definition CachedConsumer.h:25
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24