18#ifndef _ACTIVEMQ_COMMANDS_CONSUMERCONTROL_H_
19#define _ACTIVEMQ_COMMANDS_CONSUMERCONTROL_H_
23#pragma warning( disable : 4290 )
37 using decaf::lang::Pointer;
65 ConsumerControl(
const ConsumerControl&);
66 ConsumerControl& operator= (
const ConsumerControl&);
#define AMQCPP_API
Definition Config.h:30
BaseCommand()
Definition BaseCommand.h:35
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual void setPrefetch(int prefetch)
static const unsigned char ID_CONSUMERCONTROL
Definition ConsumerControl.h:61
virtual void setFlush(bool flush)
virtual const Pointer< ActiveMQDestination > & getDestination() const
virtual Pointer< ConsumerId > & getConsumerId()
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual void setStop(bool stop)
virtual void setClose(bool close)
bool start
Definition ConsumerControl.h:56
virtual ConsumerControl * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
virtual bool isConsumerControl() const
Definition ConsumerControl.h:110
virtual const Pointer< ConsumerId > & getConsumerId() const
Pointer< ConsumerId > consumerId
Definition ConsumerControl.h:53
Pointer< ActiveMQDestination > destination
Definition ConsumerControl.h:51
bool stop
Definition ConsumerControl.h:57
virtual int getPrefetch() const
bool close
Definition ConsumerControl.h:52
virtual bool isFlush() const
virtual void setStart(bool start)
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual void setConsumerId(const Pointer< ConsumerId > &consumerId)
virtual Pointer< ActiveMQDestination > & getDestination()
bool flush
Definition ConsumerControl.h:55
virtual bool isClose() const
virtual void setDestination(const Pointer< ActiveMQDestination > &destination)
virtual ~ConsumerControl()
int prefetch
Definition ConsumerControl.h:54
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 bool isStart() const
virtual bool isStop() const
Definition DataStructure.h:27
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