activemq-cpp-3.6.0
|
A Destination object encapsulates a provider-specific address. More...
#include <src/main/cms/Destination.h>
Public Types | |
enum | DestinationType { TOPIC, QUEUE, TEMPORARY_TOPIC, TEMPORARY_QUEUE } |
Public Member Functions | |
virtual | ~Destination () |
virtual DestinationType | getDestinationType () const =0 |
Retrieve the Destination Type for this Destination. | |
virtual cms::Destination * | clone () const =0 |
Creates a new instance of this destination type that is a copy of this one, and returns it. | |
virtual void | copy (const cms::Destination &source)=0 |
Copies the contents of the given Destination object to this one. | |
virtual bool | equals (const cms::Destination &other) const =0 |
Compares two Destination instances to determine if they represent the same logic Destination. | |
virtual const CMSProperties & | getCMSProperties () const =0 |
Retrieve any properties that might be part of the destination that was specified. |
A Destination object encapsulates a provider-specific address.
There is no standard definition of a Destination address, each provider can provide its own definition and there can be configuration data attached to the Destination address.
All CMS Destination objects support concurrent use.
|
virtual |
|
pure virtual |
Creates a new instance of this destination type that is a copy of this one, and returns it.
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTopic, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTempQueue.
Referenced by activemq::commands::ActiveMQMessageTemplate< cms::ObjectMessage >::setCMSDestination(), and activemq::commands::ActiveMQMessageTemplate< cms::ObjectMessage >::setCMSReplyTo().
|
pure virtual |
Copies the contents of the given Destination object to this one.
source | The source Destination object. |
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTopic, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTempQueue.
|
pure virtual |
Compares two Destination instances to determine if they represent the same logic Destination.
other | The other destination to compare this one to. |
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTopic, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTempQueue.
|
pure virtual |
Retrieve any properties that might be part of the destination that was specified.
This is a deviation from the JMS spec but necessary due to C++ restrictions.
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTopic, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTempQueue.
|
pure virtual |
Retrieve the Destination Type for this Destination.
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTopic, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTempQueue.