18#ifndef _ACTIVEMQ_COMMANDS_MESSAGEACK_H_
19#define _ACTIVEMQ_COMMANDS_MESSAGEACK_H_
23#pragma warning( disable : 4290 )
42 using decaf::lang::Pointer;
71 MessageAck(
const MessageAck&);
72 MessageAck& operator= (
const MessageAck&);
#define AMQCPP_API
Definition Config.h:30
BaseCommand()
Definition BaseCommand.h:35
Definition DataStructure.h:27
MessageAck(const Pointer< Message > &message, int ackType, int messageCount)
virtual const Pointer< MessageId > & getLastMessageId() const
unsigned char ackType
Definition MessageAck.h:59
Pointer< ActiveMQDestination > destination
Definition MessageAck.h:56
virtual Pointer< ConsumerId > & getConsumerId()
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
Pointer< TransactionId > transactionId
Definition MessageAck.h:57
Pointer< ConsumerId > consumerId
Definition MessageAck.h:58
virtual Pointer< ActiveMQDestination > & getDestination()
Pointer< MessageId > firstMessageId
Definition MessageAck.h:60
virtual const Pointer< BrokerError > & getPoisonCause() const
virtual int getMessageCount() const
virtual unsigned char getAckType() const
virtual Pointer< MessageId > & getLastMessageId()
MessageAck(const Pointer< MessageDispatch > &dispatch, int ackType, int messageCount)
virtual void setDestination(const Pointer< ActiveMQDestination > &destination)
virtual void setTransactionId(const Pointer< TransactionId > &transactionId)
virtual const Pointer< MessageId > & getFirstMessageId() const
virtual void setMessageCount(int messageCount)
virtual Pointer< TransactionId > & getTransactionId()
virtual void setPoisonCause(const Pointer< BrokerError > &poisonCause)
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual void setFirstMessageId(const Pointer< MessageId > &firstMessageId)
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual Pointer< MessageId > & getFirstMessageId()
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
Pointer< MessageId > lastMessageId
Definition MessageAck.h:61
virtual const Pointer< ConsumerId > & getConsumerId() const
virtual const Pointer< TransactionId > & getTransactionId() const
virtual MessageAck * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
Pointer< BrokerError > poisonCause
Definition MessageAck.h:63
virtual void setConsumerId(const Pointer< ConsumerId > &consumerId)
static const unsigned char ID_MESSAGEACK
Definition MessageAck.h:67
virtual bool isMessageAck() const
Definition MessageAck.h:141
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 const Pointer< ActiveMQDestination > & getDestination() const
int messageCount
Definition MessageAck.h:62
virtual void setLastMessageId(const Pointer< MessageId > &lastMessageId)
virtual Pointer< BrokerError > & getPoisonCause()
virtual void setAckType(unsigned char ackType)
Interface for an Object that can visit the various Command Objects that are sent from and to this cli...
Definition CommandVisitor.h:69
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