18#ifndef _ACTIVEMQ_COMMANDS_MESSAGEDISPATCH_H_
19#define _ACTIVEMQ_COMMANDS_MESSAGEDISPATCH_H_
23#pragma warning( disable : 4290 )
39 using decaf::lang::Pointer;
68 MessageDispatch(
const MessageDispatch&);
69 MessageDispatch& operator= (
const MessageDispatch&);
#define AMQCPP_API
Definition Config.h:30
BaseCommand()
Definition BaseCommand.h:35
Definition DataStructure.h:27
Pointer< ConsumerId > consumerId
Definition MessageDispatch.h:53
static const unsigned char ID_MESSAGEDISPATCH
Definition MessageDispatch.h:60
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
int redeliveryCounter
Definition MessageDispatch.h:56
virtual void setRedeliveryCounter(int redeliveryCounter)
virtual const Pointer< Message > & getMessage() const
virtual ~MessageDispatch()
virtual Pointer< Command > visit(activemq::state::CommandVisitor *visitor)
Allows a Visitor to visit this command and return a response to the command based on the command type...
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual void setDestination(const Pointer< ActiveMQDestination > &destination)
virtual Pointer< ConsumerId > & getConsumerId()
virtual bool isMessageDispatch() const
Definition MessageDispatch.h:109
Pointer< ActiveMQDestination > destination
Definition MessageDispatch.h:54
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
decaf::lang::Exception getRollbackCause() const
Pointer< Message > message
Definition MessageDispatch.h:55
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual const Pointer< ActiveMQDestination > & getDestination() const
void setRollbackCause(const decaf::lang::Exception &cause)
virtual void setConsumerId(const Pointer< ConsumerId > &consumerId)
virtual Pointer< Message > & getMessage()
virtual Pointer< ActiveMQDestination > & getDestination()
virtual int getRedeliveryCounter() const
virtual const Pointer< ConsumerId > & getConsumerId() const
virtual void setMessage(const Pointer< Message > &message)
virtual MessageDispatch * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
Interface for an Object that can visit the various Command Objects that are sent from and to this cli...
Definition CommandVisitor.h:69
Definition Exception.h:38
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24