17#ifndef _ACTIVEMQ_CORE_ACTIVEMQPRODUCER_H_
18#define _ACTIVEMQ_CORE_ACTIVEMQPRODUCER_H_
32 using decaf::lang::Pointer;
43 ActiveMQProducer(
const ActiveMQProducer&);
44 ActiveMQProducer& operator=(
const ActiveMQProducer&);
67 virtual void send(
cms::Message* message,
int deliveryMode,
int priority,
long long timeToLive);
76 int deliveryMode,
int priority,
long long timeToLive);
86 this->kernel->setDeliveryMode(mode);
94 return this->kernel->getDeliveryMode();
102 this->kernel->setDisableMessageID(value);
110 return this->kernel->getDisableMessageID();
118 this->kernel->setDisableMessageTimeStamp(value);
126 return this->kernel->getDisableMessageTimeStamp();
134 this->kernel->setPriority(priority);
142 return this->kernel->getPriority();
150 this->kernel->setTimeToLive(time);
158 return this->kernel->getTimeToLive();
166 this->kernel->setSendTimeout(time);
174 return this->kernel->getSendTimeout();
178 this->kernel->setMessageTransformer(transformer);
182 return this->kernel->getMessageTransformer();
191 return this->kernel->isClosed();
199 return this->kernel->getProducerInfo();
207 return this->kernel->getProducerId();
#define AMQCPP_API
Definition Config.h:30
virtual void send(cms::Message *message, int deliveryMode, int priority, long long timeToLive)
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual void close()
Closes this object and deallocates the appropriate resources.
virtual void setDisableMessageTimeStamp(bool value)
Sets if Message Time Stamps are disabled for this Producer.
Definition ActiveMQProducer.h:117
virtual void send(const cms::Destination *destination, cms::Message *message, int deliveryMode, int priority, long long timeToLive, cms::AsyncCallback *callback)
Sends the message to the designated destination, but does not take ownership of the message,...
virtual long long getTimeToLive() const
Gets the Time to Live that this producer sends messages with.
Definition ActiveMQProducer.h:157
virtual void setTimeToLive(long long time)
Sets the Time to Live that this Producers sends messages with.
Definition ActiveMQProducer.h:149
virtual void setDisableMessageID(bool value)
Sets if Message Ids are disabled for this Producer.
Definition ActiveMQProducer.h:101
virtual void setPriority(int priority)
Sets the Priority that this Producers sends messages at.
Definition ActiveMQProducer.h:133
const Pointer< commands::ProducerId > & getProducerId() const
Retries this object ProducerId or NULL if closed.
Definition ActiveMQProducer.h:206
virtual cms::MessageTransformer * getMessageTransformer() const
Gets the currently configured MessageTransformer for this MessageProducer.
Definition ActiveMQProducer.h:181
bool isClosed() const
Definition ActiveMQProducer.h:190
virtual int getPriority() const
Gets the Priority level that this producer sends messages at.
Definition ActiveMQProducer.h:141
ActiveMQProducer(Pointer< activemq::core::kernels::ActiveMQProducerKernel > kernel)
Constructor, creates an instance of an ActiveMQProducer to wrap the provided ActiveMQProducerKernel.
virtual ~ActiveMQProducer()
virtual long long getSendTimeout() const
Gets the Send Timeout that this producer sends messages with.
Definition ActiveMQProducer.h:173
virtual void send(cms::Message *message)
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual void setSendTimeout(long long time)
Sets the Send Timeout that this Producers sends messages with.
Definition ActiveMQProducer.h:165
virtual void send(cms::Message *message, cms::AsyncCallback *callback)
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual void send(cms::Message *message, int deliveryMode, int priority, long long timeToLive, cms::AsyncCallback *callback)
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual void send(const cms::Destination *destination, cms::Message *message, cms::AsyncCallback *callback)
Sends the message to the designated destination, but does not take ownership of the message,...
const Pointer< commands::ProducerInfo > & getProducerInfo() const
Retries this object ProducerInfo pointer.
Definition ActiveMQProducer.h:198
virtual void setDeliveryMode(int mode)
Sets the delivery mode for this Producer.
Definition ActiveMQProducer.h:85
virtual bool getDisableMessageID() const
Gets if Message Ids are disabled for this Producer.
Definition ActiveMQProducer.h:109
virtual bool getDisableMessageTimeStamp() const
Gets if Message Time Stamps are disabled for this Producer.
Definition ActiveMQProducer.h:125
virtual int getDeliveryMode() const
Gets the delivery mode for this Producer.
Definition ActiveMQProducer.h:93
virtual void send(const cms::Destination *destination, cms::Message *message)
Sends the message to the designated destination, but does not take ownership of the message,...
virtual void send(const cms::Destination *destination, cms::Message *message, int deliveryMode, int priority, long long timeToLive)
Sends the message to the designated destination, but does not take ownership of the message,...
virtual void setMessageTransformer(cms::MessageTransformer *transformer)
Set an MessageTransformer instance that is applied to all cms::Message objects before they are sent o...
Definition ActiveMQProducer.h:177
Definition ActiveMQSession.h:42
Asynchronous event interface for CMS asynchronous operations.
Definition AsyncCallback.h:37
A Destination object encapsulates a provider-specific address.
Definition Destination.h:39
Root of all messages.
Definition Message.h:88
A client uses a MessageProducer object to send messages to a Destination.
Definition MessageProducer.h:60
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 ActiveMQTempDestination.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24