activemq-cpp-3.4.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 () throw () |
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 cms::Destination::~Destination | ( | ) | throw () [virtual] |
virtual cms::Destination* cms::Destination::clone | ( | ) | const [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::ActiveMQTempQueue, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTopic.
Referenced by activemq::commands::ActiveMQMessageTemplate< cms::ObjectMessage >::setCMSDestination(), and activemq::commands::ActiveMQMessageTemplate< cms::ObjectMessage >::setCMSReplyTo().
virtual void cms::Destination::copy | ( | const cms::Destination & | source | ) | [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::ActiveMQTempQueue, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTopic.
virtual bool cms::Destination::equals | ( | const cms::Destination & | other | ) | const [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::ActiveMQTempQueue, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTopic.
virtual const CMSProperties& cms::Destination::getCMSProperties | ( | ) | const [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::ActiveMQTempQueue, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTopic.
virtual DestinationType cms::Destination::getDestinationType | ( | ) | const [pure virtual] |
Retrieve the Destination Type for this Destination.
Implemented in activemq::commands::ActiveMQQueue, activemq::commands::ActiveMQTempQueue, activemq::commands::ActiveMQTempTopic, and activemq::commands::ActiveMQTopic.