activemq-cpp-3.8.2
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 
21 #include <activemq/util/Config.h>
24 #include <cms/Closeable.h>
25 #include <vector>
26 #include <string>
27 
28 namespace activemq{
29 namespace core{
30  class ActiveMQConnection;
31 }
32 namespace commands{
33 
35  public cms::Closeable {
36  protected:
37 
43 
47  std::string connectionId;
48 
50 
51  public:
52 
53  const static unsigned char ID_ACTIVEMQTEMPDESTINATION = 0;
54 
55  private:
56 
59 
60  public:
61 
63  ActiveMQTempDestination(const std::string& name);
64  virtual ~ActiveMQTempDestination() throw();
65 
66  virtual unsigned char getDataStructureType() const;
67 
68  virtual ActiveMQTempDestination* cloneDataStructure() const {
69  return NULL;
70  }
71 
72  virtual void copyDataStructure(const DataStructure* src) {
73  ActiveMQDestination::copyDataStructure(src);
74  }
75 
76  virtual std::string toString() const;
77 
78  virtual bool equals(const DataStructure* value) const {
79  return ActiveMQDestination::equals(value);
80  }
81 
82  virtual void close();
83 
84  virtual void setPhysicalName(const std::string& physicalName);
85 
94  this->connection = connection;
95  }
96 
103  return this->connection;
104  }
105 
109  std::string getConnectionId() const {
110  return this->connectionId;
111  }
112  };
113 
114 }}
115 
116 #endif /*_ACTIVEMQ_COMMANDS_ACTIVEMQTEMPDESTINATION_H_*/
core::ActiveMQConnection * getConnection() const
Retrieves the Parent Connection that created this Connection.
Definition: ActiveMQTempDestination.h:102
Definition: ActiveMQTempDestination.h:34
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data...
Definition: ActiveMQTempDestination.h:72
#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.
Definition: ActiveMQTempDestination.h:78
#define NULL
Definition: Config.h:33
Interface for a class that implements the close method.
Definition: Closeable.h:35
std::string getConnectionId() const
Definition: ActiveMQTempDestination.h:109
void setConnection(core::ActiveMQConnection *connection)
Sets the Parent Connection that is notified when this destination is destroyed.
Definition: ActiveMQTempDestination.h:93
Definition: DataStructure.h:27
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:42
int sequenceId
Definition: ActiveMQTempDestination.h:49
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
#define const
Definition: zconf.h:198
Concrete connection used for all connectors to the ActiveMQ broker.
Definition: ActiveMQConnection.h:60
std::string connectionId
The Connection Id of the Connection that created this Temporary Destination.
Definition: ActiveMQTempDestination.h:47
Definition: ActiveMQDestination.h:38