activemq-cpp-3.9.0
cms::Queue Class Referenceabstract

An interface encapsulating a provider-specific queue name. More...

#include <src/main/cms/Queue.h>

Inheritance diagram for cms::Queue:

Public Member Functions

virtual ~Queue ()
 
virtual std::string getQueueName () const =0
 Gets the name of this queue. More...
 
- Public Member Functions inherited from cms::Destination
virtual ~Destination ()
 
virtual DestinationType getDestinationType () const =0
 Retrieve the Destination Type for this Destination. More...
 
virtual cms::Destinationclone () const =0
 Creates a new instance of this destination type that is a copy of this one, and returns it. More...
 
virtual void copy (const cms::Destination &source)=0
 Copies the contents of the given Destination object to this one. More...
 
virtual bool equals (const cms::Destination &other) const =0
 Compares two Destination instances to determine if they represent the same logic Destination. More...
 
virtual const CMSPropertiesgetCMSProperties () const =0
 Retrieve any properties that might be part of the destination that was specified. More...
 

Additional Inherited Members

- Public Types inherited from cms::Destination
enum  DestinationType { TOPIC, QUEUE, TEMPORARY_TOPIC, TEMPORARY_QUEUE }
 

Detailed Description

An interface encapsulating a provider-specific queue name.

Messages sent to a Queue are sent to a Single Subscriber on that Queue Destination. This allows for Queues to be used as load balances implementing a SEDA based architecture. The length of time that a Provider will store a Message in a Queue is not defined by the CMS API, consult your Provider documentation for this information.

Since
1.0

Constructor & Destructor Documentation

virtual cms::Queue::~Queue ( )
virtual

Member Function Documentation

virtual std::string cms::Queue::getQueueName ( ) const
pure virtual

Gets the name of this queue.

Returns
The queue name.
Exceptions
CMSException- If an internal error occurs.

Implemented in activemq::commands::ActiveMQQueue, and activemq::commands::ActiveMQTempQueue.


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