activemq-cpp-3.9.5
ActiveMQTempDestination.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_H_
20
24#include <cms/Closeable.h>
25#include <vector>
26#include <string>
27
28namespace activemq{
29namespace core{
31}
32namespace commands{
33
34 class AMQCPP_API ActiveMQTempDestination : public ActiveMQDestination,
35 public cms::Closeable,
36 public decaf::lang::Comparable<ActiveMQTempDestination> {
37 public:
38
41 using ActiveMQDestination::operator<;
42 using ActiveMQDestination::operator==;
43
44 protected:
45
51
55 std::string connectionId;
56
58
59 public:
60
61 const static unsigned char ID_ACTIVEMQTEMPDESTINATION = 0;
62
63 private:
64
65 ActiveMQTempDestination(const ActiveMQTempDestination&);
66 ActiveMQTempDestination& operator=(const ActiveMQTempDestination&);
67
68 public:
69
71 ActiveMQTempDestination(const std::string& name);
72 virtual ~ActiveMQTempDestination() throw();
73
74 virtual unsigned char getDataStructureType() const;
75
76 virtual ActiveMQTempDestination* cloneDataStructure() const {
77 return NULL;
78 }
79
83
84 virtual std::string toString() const;
85
86 virtual bool equals(const DataStructure* value) const {
87 return ActiveMQDestination::equals(value);
88 }
89
90 virtual int compareTo(const ActiveMQTempDestination& value) const {
92 }
93
94 virtual bool equals(const ActiveMQTempDestination& value) const {
95 return ActiveMQDestination::equals(&value);
96 }
97
98 virtual bool operator==(const ActiveMQTempDestination& value) const {
99 return ActiveMQDestination::equals(&value);
100 }
101
102 virtual bool operator<(const ActiveMQTempDestination& value) const {
103 return ActiveMQDestination::compareTo(value) < 0;
104 }
105
106 virtual void close();
107
108 virtual void setPhysicalName(const std::string& physicalName);
109
118 this->connection = connection;
119 }
120
127 return this->connection;
128 }
129
133 std::string getConnectionId() const {
134 return this->connectionId;
135 }
136 };
137
138}}
139
140#endif /*_ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_H_*/
#define AMQCPP_API
Definition Config.h:30
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual int compareTo(const ActiveMQDestination &value) const
std::string physicalName
Definition ActiveMQDestination.h:68
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual bool operator<(const ActiveMQTempDestination &value) const
Definition ActiveMQTempDestination.h:102
static const unsigned char ID_ACTIVEMQTEMPDESTINATION
Definition ActiveMQTempDestination.h:61
std::string getConnectionId() const
Definition ActiveMQTempDestination.h:133
std::string connectionId
The Connection Id of the Connection that created this Temporary Destination.
Definition ActiveMQTempDestination.h:55
int sequenceId
Definition ActiveMQTempDestination.h:57
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
Definition ActiveMQTempDestination.h:80
virtual void close()
Closes this object and deallocates the appropriate resources.
ActiveMQTempDestination(const std::string &name)
void setConnection(core::ActiveMQConnection *connection)
Sets the Parent Connection that is notified when this destination is destroyed.
Definition ActiveMQTempDestination.h:117
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
core::ActiveMQConnection * getConnection() const
Retrieves the Parent Connection that created this Connection.
Definition ActiveMQTempDestination.h:126
core::ActiveMQConnection * connection
Connection that we call back on close to allow this resource to be cleaned up correctly at this end a...
Definition ActiveMQTempDestination.h:50
virtual bool operator==(const ActiveMQTempDestination &value) const
Definition ActiveMQTempDestination.h:98
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual void setPhysicalName(const std::string &physicalName)
Set this destination's physical name.
virtual ActiveMQTempDestination * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
Definition ActiveMQTempDestination.h:76
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
Definition ActiveMQTempDestination.h:86
virtual bool equals(const ActiveMQTempDestination &value) const
Definition ActiveMQTempDestination.h:94
virtual int compareTo(const ActiveMQTempDestination &value) const
Definition ActiveMQTempDestination.h:90
Definition DataStructure.h:27
Concrete connection used for all connectors to the ActiveMQ broker.
Definition ActiveMQConnection.h:62
Interface for a class that implements the close method.
Definition Closeable.h:35
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
#define NULL
Definition Config.h:33
Definition ActiveMQBlobMessage.h:28
Definition ActiveMQTempDestination.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24
#define const
Definition zconf.h:198