18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQDESTINATION_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQDESTINATION_H_
36 using decaf::lang::Pointer;
82 ActiveMQDestination(
const ActiveMQDestination&);
83 ActiveMQDestination& operator=(
const ActiveMQDestination&);
106 return this->hashCode;
116 return this->physicalName;
276 virtual int compareTo(
const ActiveMQDestination& value)
const;
278 virtual bool equals(
const ActiveMQDestination& value)
const;
280 virtual bool operator==(
const ActiveMQDestination& value)
const;
282 virtual bool operator<(
const ActiveMQDestination& value)
const;
302 static std::string
getClientId(
const ActiveMQDestination* destination);
#define AMQCPP_API
Definition Config.h:30
virtual bool operator==(const ActiveMQDestination &value) const
bool ordered
Definition ActiveMQDestination.h:63
virtual bool isComposite() const
Returns true if this destination represents a collection of destinations; allowing a set of destinati...
Definition ActiveMQDestination.h:229
virtual void setPhysicalName(const std::string &physicalName)
Set this destination's physical name.
static const std::string DEFAULT_ORDERED_TARGET
The default target for ordered destinations.
Definition ActiveMQDestination.h:50
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
bool advisory
Definition ActiveMQDestination.h:64
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
static std::string createTemporaryName(const std::string &clientId)
Create a temporary name from the clientId.
Definition ActiveMQDestination.h:292
util::ActiveMQProperties options
Definition ActiveMQDestination.h:69
virtual std::string getOrderedTarget() const
Definition ActiveMQDestination.h:170
ActiveMQDestination(const std::string &physicalName)
static const std::string COMPOSITE_SEPARATOR
Definition ActiveMQDestination.h:54
const activemq::util::ActiveMQProperties & getOptions() const
Definition ActiveMQDestination.h:251
virtual bool operator<(const ActiveMQDestination &value) const
virtual const cms::Destination * getCMSDestination() const
Definition ActiveMQDestination.h:259
std::string orderedTarget
Definition ActiveMQDestination.h:66
virtual bool isQueue() const
Returns true if a Queue Destination.
Definition ActiveMQDestination.h:217
virtual ~ActiveMQDestination()
virtual int compareTo(const ActiveMQDestination &value) const
bool exclusive
Definition ActiveMQDestination.h:62
virtual ActiveMQDestination * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
Definition ActiveMQDestination.h:93
decaf::util::ArrayList< Pointer< ActiveMQDestination > > getCompositeDestinations() const
Returns an ArrayList containing all the ActiveMQDestinations that comprise this Composite destination...
virtual void setAdvisory(bool advisory)
Definition ActiveMQDestination.h:135
static const std::string TEMP_QUEUE_QUALIFED_PREFIX
Definition ActiveMQDestination.h:58
virtual std::string getPhysicalName() const
Fetch this destination's physical name.
Definition ActiveMQDestination.h:115
decaf::util::ArrayList< Pointer< ActiveMQDestination > > compositeDestinations
Definition ActiveMQDestination.h:65
static const std::string TEMP_DESTINATION_NAME_PREFIX
Definition ActiveMQDestination.h:76
virtual bool isAdvisory() const
Definition ActiveMQDestination.h:128
std::string getDestinationTypeAsString() const
Returns the type of Destination that this object represents as a string, the available string values ...
virtual bool isTopic() const
Returns true if a Topic Destination.
Definition ActiveMQDestination.h:208
virtual bool isTemporary() const
Returns true if a temporary Destination.
Definition ActiveMQDestination.h:199
static const std::string TOPIC_QUALIFIED_PREFIX
Definition ActiveMQDestination.h:57
std::string physicalName
Definition ActiveMQDestination.h:68
static const std::string QUEUE_QUALIFIED_PREFIX
Definition ActiveMQDestination.h:56
static const unsigned char ID_ACTIVEMQDESTINATION
Definition ActiveMQDestination.h:74
static Pointer< ActiveMQDestination > createDestination(int type, const std::string &name)
Creates a Destination given the String Name to use and a Type.
static std::string getClientId(const ActiveMQDestination *destination)
From a temporary destination find the clientId of the Connection that created it.
virtual bool isWildcard() const
Definition ActiveMQDestination.h:243
virtual bool isOrdered() const
Definition ActiveMQDestination.h:156
virtual void setExclusive(bool exclusive)
Definition ActiveMQDestination.h:149
int hashCode
Definition ActiveMQDestination.h:70
virtual bool equals(const ActiveMQDestination &value) const
decaf::lang::PointerComparator< ActiveMQDestination > COMPARATOR
Definition ActiveMQDestination.h:78
static const std::string TEMP_POSTFIX
Definition ActiveMQDestination.h:53
virtual cms::Destination::DestinationType getDestinationType() const =0
Returns the Type of Destination that this object represents.
static const std::string TEMP_PREFIX
Definition ActiveMQDestination.h:52
virtual bool isExclusive() const
Definition ActiveMQDestination.h:142
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
static const std::string TEMP_TOPIC_QUALIFED_PREFIX
Definition ActiveMQDestination.h:59
virtual void setOrderedTarget(const std::string &orderedTarget)
Definition ActiveMQDestination.h:177
virtual void setOrdered(bool ordered)
Definition ActiveMQDestination.h:163
int getHashCode() const
Definition ActiveMQDestination.h:105
Pointer< ActiveMQDestination > createDestination(const std::string &name) const
Create a new Destination that's of the same type as this one but with the given destination name.
Definition ActiveMQDestination.h:272
Definition BaseDataStructure.h:33
Definition DataStructure.h:27
Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object.
Definition ActiveMQProperties.h:37
A Destination object encapsulates a provider-specific address.
Definition Destination.h:39
DestinationType
Definition Destination.h:42
@ TEMPORARY_TOPIC
Definition Destination.h:45
@ TOPIC
Definition Destination.h:43
@ TEMPORARY_QUEUE
Definition Destination.h:46
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
This implementation of Comparator is designed to allows objects in a Collection to be sorted or teste...
Definition Pointer.h:366
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Definition ArrayList.h:39
#define NULL
Definition Config.h:33
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24
Definition ActiveMQDestination.h:42
static const std::string ANY_CHILD
Definition ActiveMQDestination.h:43
static const std::string ANY_DESCENDENT
Definition ActiveMQDestination.h:44