|
activemq-cpp-3.3.0
|
00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef _ACTIVEMQ_COMMANDS_CONSUMERINFO_H_ 00019 #define _ACTIVEMQ_COMMANDS_CONSUMERINFO_H_ 00020 00021 // Turn off warning message for ignored exception specification 00022 #ifdef _MSC_VER 00023 #pragma warning( disable : 4290 ) 00024 #endif 00025 00026 #include <activemq/commands/ActiveMQDestination.h> 00027 #include <activemq/commands/BaseCommand.h> 00028 #include <activemq/commands/BooleanExpression.h> 00029 #include <activemq/commands/BrokerId.h> 00030 #include <activemq/commands/ConsumerId.h> 00031 #include <activemq/commands/RemoveInfo.h> 00032 #include <activemq/util/Config.h> 00033 #include <decaf/lang/Pointer.h> 00034 #include <string> 00035 #include <vector> 00036 00037 namespace activemq{ 00038 namespace commands{ 00039 00040 using decaf::lang::Pointer; 00041 00042 /* 00043 * 00044 * Command code for OpenWire format for ConsumerInfo 00045 * 00046 * NOTE!: This file is auto generated - do not modify! 00047 * if you need to make a change, please see the Java Classes 00048 * in the activemq-cpp-openwire-generator module 00049 * 00050 */ 00051 class AMQCPP_API ConsumerInfo : public BaseCommand { 00052 protected: 00053 00054 Pointer<ConsumerId> consumerId; 00055 bool browser; 00056 Pointer<ActiveMQDestination> destination; 00057 int prefetchSize; 00058 int maximumPendingMessageLimit; 00059 bool dispatchAsync; 00060 std::string selector; 00061 std::string subscriptionName; 00062 bool noLocal; 00063 bool exclusive; 00064 bool retroactive; 00065 unsigned char priority; 00066 std::vector< decaf::lang::Pointer<BrokerId> > brokerPath; 00067 Pointer<BooleanExpression> additionalPredicate; 00068 bool networkSubscription; 00069 bool optimizedAcknowledge; 00070 bool noRangeAcks; 00071 std::vector< decaf::lang::Pointer<ConsumerId> > networkConsumerPath; 00072 00073 public: 00074 00075 const static unsigned char ID_CONSUMERINFO = 5; 00076 00077 private: 00078 00079 ConsumerInfo( const ConsumerInfo& ); 00080 ConsumerInfo& operator= ( const ConsumerInfo& ); 00081 00082 public: 00083 00084 ConsumerInfo(); 00085 00086 virtual ~ConsumerInfo(); 00087 00088 virtual unsigned char getDataStructureType() const; 00089 00090 virtual ConsumerInfo* cloneDataStructure() const; 00091 00092 virtual void copyDataStructure( const DataStructure* src ); 00093 00094 virtual std::string toString() const; 00095 00096 virtual bool equals( const DataStructure* value ) const; 00097 00098 Pointer<RemoveInfo> createRemoveCommand() const; 00099 00100 virtual const Pointer<ConsumerId>& getConsumerId() const; 00101 virtual Pointer<ConsumerId>& getConsumerId(); 00102 virtual void setConsumerId( const Pointer<ConsumerId>& consumerId ); 00103 00104 virtual bool isBrowser() const; 00105 virtual void setBrowser( bool browser ); 00106 00107 virtual const Pointer<ActiveMQDestination>& getDestination() const; 00108 virtual Pointer<ActiveMQDestination>& getDestination(); 00109 virtual void setDestination( const Pointer<ActiveMQDestination>& destination ); 00110 00111 virtual int getPrefetchSize() const; 00112 virtual void setPrefetchSize( int prefetchSize ); 00113 00114 virtual int getMaximumPendingMessageLimit() const; 00115 virtual void setMaximumPendingMessageLimit( int maximumPendingMessageLimit ); 00116 00117 virtual bool isDispatchAsync() const; 00118 virtual void setDispatchAsync( bool dispatchAsync ); 00119 00120 virtual const std::string& getSelector() const; 00121 virtual std::string& getSelector(); 00122 virtual void setSelector( const std::string& selector ); 00123 00124 virtual const std::string& getSubscriptionName() const; 00125 virtual std::string& getSubscriptionName(); 00126 virtual void setSubscriptionName( const std::string& subscriptionName ); 00127 00128 virtual bool isNoLocal() const; 00129 virtual void setNoLocal( bool noLocal ); 00130 00131 virtual bool isExclusive() const; 00132 virtual void setExclusive( bool exclusive ); 00133 00134 virtual bool isRetroactive() const; 00135 virtual void setRetroactive( bool retroactive ); 00136 00137 virtual unsigned char getPriority() const; 00138 virtual void setPriority( unsigned char priority ); 00139 00140 virtual const std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath() const; 00141 virtual std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath(); 00142 virtual void setBrokerPath( const std::vector< decaf::lang::Pointer<BrokerId> >& brokerPath ); 00143 00144 virtual const Pointer<BooleanExpression>& getAdditionalPredicate() const; 00145 virtual Pointer<BooleanExpression>& getAdditionalPredicate(); 00146 virtual void setAdditionalPredicate( const Pointer<BooleanExpression>& additionalPredicate ); 00147 00148 virtual bool isNetworkSubscription() const; 00149 virtual void setNetworkSubscription( bool networkSubscription ); 00150 00151 virtual bool isOptimizedAcknowledge() const; 00152 virtual void setOptimizedAcknowledge( bool optimizedAcknowledge ); 00153 00154 virtual bool isNoRangeAcks() const; 00155 virtual void setNoRangeAcks( bool noRangeAcks ); 00156 00157 virtual const std::vector< decaf::lang::Pointer<ConsumerId> >& getNetworkConsumerPath() const; 00158 virtual std::vector< decaf::lang::Pointer<ConsumerId> >& getNetworkConsumerPath(); 00159 virtual void setNetworkConsumerPath( const std::vector< decaf::lang::Pointer<ConsumerId> >& networkConsumerPath ); 00160 00164 virtual bool isConsumerInfo() const { 00165 return true; 00166 } 00167 00168 virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor ); 00169 00170 }; 00171 00172 }} 00173 00174 #endif /*_ACTIVEMQ_COMMANDS_CONSUMERINFO_H_*/