activemq-cpp-3.3.0

src/main/activemq/commands/ProducerInfo.h

Go to the documentation of this file.
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_PRODUCERINFO_H_
00019 #define _ACTIVEMQ_COMMANDS_PRODUCERINFO_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/BrokerId.h>
00029 #include <activemq/commands/ProducerId.h>
00030 #include <activemq/commands/RemoveInfo.h>
00031 #include <activemq/util/Config.h>
00032 #include <decaf/lang/Pointer.h>
00033 #include <string>
00034 #include <vector>
00035 
00036 namespace activemq{
00037 namespace commands{
00038 
00039     using decaf::lang::Pointer;
00040 
00041     /*
00042      *
00043      *  Command code for OpenWire format for ProducerInfo
00044      *
00045      *  NOTE!: This file is auto generated - do not modify!
00046      *         if you need to make a change, please see the Java Classes
00047      *         in the activemq-cpp-openwire-generator module
00048      *
00049      */
00050     class AMQCPP_API ProducerInfo : public BaseCommand {
00051     protected:
00052 
00053         Pointer<ProducerId> producerId;
00054         Pointer<ActiveMQDestination> destination;
00055         std::vector< decaf::lang::Pointer<BrokerId> > brokerPath;
00056         bool dispatchAsync;
00057         int windowSize;
00058 
00059     public:
00060 
00061         const static unsigned char ID_PRODUCERINFO = 6;
00062 
00063     private:
00064 
00065         ProducerInfo( const ProducerInfo& );
00066         ProducerInfo& operator= ( const ProducerInfo& );
00067 
00068     public:
00069 
00070         ProducerInfo();
00071 
00072         virtual ~ProducerInfo();
00073 
00074         virtual unsigned char getDataStructureType() const;
00075 
00076         virtual ProducerInfo* cloneDataStructure() const;
00077 
00078         virtual void copyDataStructure( const DataStructure* src );
00079 
00080         virtual std::string toString() const;
00081 
00082         virtual bool equals( const DataStructure* value ) const;
00083 
00084         Pointer<RemoveInfo> createRemoveCommand() const;
00085 
00086         virtual const Pointer<ProducerId>& getProducerId() const;
00087         virtual Pointer<ProducerId>& getProducerId();
00088         virtual void setProducerId( const Pointer<ProducerId>& producerId );
00089 
00090         virtual const Pointer<ActiveMQDestination>& getDestination() const;
00091         virtual Pointer<ActiveMQDestination>& getDestination();
00092         virtual void setDestination( const Pointer<ActiveMQDestination>& destination );
00093 
00094         virtual const std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath() const;
00095         virtual std::vector< decaf::lang::Pointer<BrokerId> >& getBrokerPath();
00096         virtual void setBrokerPath( const std::vector< decaf::lang::Pointer<BrokerId> >& brokerPath );
00097 
00098         virtual bool isDispatchAsync() const;
00099         virtual void setDispatchAsync( bool dispatchAsync );
00100 
00101         virtual int getWindowSize() const;
00102         virtual void setWindowSize( int windowSize );
00103 
00107         virtual bool isProducerInfo() const {
00108             return true;
00109         }
00110 
00111         virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
00112 
00113     };
00114 
00115 }}
00116 
00117 #endif /*_ACTIVEMQ_COMMANDS_PRODUCERINFO_H_*/