/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef Message_h_ #define Message_h_ #include #include #include #include #include #include "command/BaseCommand.h" #include "ProducerId.h" #include "ActiveMQDestination.h" #include "TransactionId.h" #include "ActiveMQDestination.h" #include "MessageId.h" #include "TransactionId.h" #include "ActiveMQDestination.h" #include "IDataStructure.h" #include "ConsumerId.h" #include "BrokerId.h" namespace ActiveMQ { namespace Command { /* * * Marshalling code for Open Wire Format for Message * * * NOTE!: This file is autogenerated - do not modify! * if you need to make a change, please see the Groovy scripts in the * activemq-core module * */ class Message : public BaseCommand { private: boost::shared_ptr producerId_; boost::shared_ptr destination_; boost::shared_ptr transactionId_; boost::shared_ptr originalDestination_; boost::shared_ptr messageId_; boost::shared_ptr originalTransactionId_; std::string groupID_; int groupSequence_; std::string correlationId_; bool persistent_; int64_t expiration_; uint8_t priority_; boost::shared_ptr replyTo_; int64_t timestamp_; std::string type_; std::vector content_; std::vector marshalledProperties_; boost::shared_ptr dataStructure_; boost::shared_ptr targetConsumerId_; bool compressed_; int redeliveryCounter_; std::vector > brokerPath_; int64_t arrival_; std::string userID_; bool recievedByDFBridge_; public: const static int TYPE = 0; public: Message(); virtual ~Message(); virtual bool isMarshalAware() const; virtual int getCommandType() const; virtual boost::shared_ptr getProducerId() const; virtual void setProducerId(const boost::shared_ptr& producerId); virtual boost::shared_ptr getDestination() const; virtual void setDestination(const boost::shared_ptr& destination); virtual boost::shared_ptr getTransactionId() const; virtual void setTransactionId(const boost::shared_ptr& transactionId); virtual boost::shared_ptr getOriginalDestination() const; virtual void setOriginalDestination(const boost::shared_ptr& originalDestination); virtual boost::shared_ptr getMessageId() const; virtual void setMessageId(const boost::shared_ptr& messageId); virtual boost::shared_ptr getOriginalTransactionId() const; virtual void setOriginalTransactionId(const boost::shared_ptr& originalTransactionId); virtual const std::string& getGroupID() const; virtual void setGroupID(const std::string& groupID); virtual int getGroupSequence() const; virtual void setGroupSequence(int groupSequence); virtual const std::string& getCorrelationId() const; virtual void setCorrelationId(const std::string& correlationId); virtual bool isPersistent() const; virtual void setPersistent(bool persistent); virtual int64_t getExpiration() const; virtual void setExpiration(int64_t expiration); virtual uint8_t getPriority() const; virtual void setPriority(uint8_t priority); virtual boost::shared_ptr getReplyTo() const; virtual void setReplyTo(const boost::shared_ptr& replyTo); virtual int64_t getTimestamp() const; virtual void setTimestamp(int64_t timestamp); virtual const std::string& getType() const; virtual void setType(const std::string& type); virtual const std::vector& getContent() const; virtual void setContent(const std::vector& content); virtual const std::vector& getMarshalledProperties() const; virtual void setMarshalledProperties(const std::vector& marshalledProperties); virtual const boost::shared_ptr& getDataStructure() const; virtual void setDataStructure(const boost::shared_ptr& dataStructure); virtual boost::shared_ptr getTargetConsumerId() const; virtual void setTargetConsumerId(const boost::shared_ptr& targetConsumerId); virtual bool isCompressed() const; virtual void setCompressed(bool compressed); virtual int getRedeliveryCounter() const; virtual void setRedeliveryCounter(int redeliveryCounter); virtual const std::vector >& getBrokerPath() const; virtual void setBrokerPath(const std::vector >& brokerPath); virtual int64_t getArrival() const; virtual void setArrival(int64_t arrival); virtual const std::string& getUserID() const; virtual void setUserID(const std::string& userID); virtual bool isRecievedByDFBridge() const; virtual void setRecievedByDFBridge(bool recievedByDFBridge); }; } } #endif /*Message_h_*/