18 #ifndef _ACTIVEMQ_CMSUTIL_CACHEDPRODUCER_H_ 19 #define _ACTIVEMQ_CMSUTIL_CACHEDPRODUCER_H_ 55 producer->
send(message);
59 producer->
send(message, onComplete);
62 virtual void send(
cms::Message* message,
int deliveryMode,
int priority,
long long timeToLive) {
63 producer->
send(message, deliveryMode, priority, timeToLive);
67 producer->
send(message, deliveryMode, priority, timeToLive, onComplete);
71 producer->
send(destination, message);
75 producer->
send(destination, message, onComplete);
79 producer->
send(destination, message, deliveryMode, priority, timeToLive);
83 producer->
send(destination, message, deliveryMode, priority, timeToLive, onComplete);
virtual void setDeliveryMode(int mode)=0
Sets the delivery mode for this Producer.
virtual int getPriority() const
Gets the Priority level that this producer sends messages at.
Definition: CachedProducer.h:114
virtual void send(const cms::Destination *destination, cms::Message *message, int deliveryMode, int priority, long long timeToLive, cms::AsyncCallback *onComplete)
Sends the message to the designated destination, but does not take ownership of the message...
Definition: CachedProducer.h:82
virtual long long getTimeToLive() const
Gets the Time to Live that this producer sends messages with.
Definition: CachedProducer.h:122
Root of all messages.
Definition: Message.h:88
A Destination object encapsulates a provider-specific address.
Definition: Destination.h:39
#define AMQCPP_API
Definition: Config.h:30
virtual void send(Message *message)=0
Sends the message to the default producer destination, but does not take ownership of the message...
virtual bool getDisableMessageTimeStamp() const
Gets if Message Time Stamps are disabled for this Producer.
Definition: CachedProducer.h:106
virtual void send(cms::Message *message, cms::AsyncCallback *onComplete)
Sends the message to the default producer destination, but does not take ownership of the message...
Definition: CachedProducer.h:58
Asynchronous event interface for CMS asynchronous operations.
Definition: AsyncCallback.h:37
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...
Definition: CachedProducer.h:78
virtual void setMessageTransformer(cms::MessageTransformer *transformer)=0
Set an MessageTransformer instance that is applied to all cms::Message objects before they are sent o...
virtual bool getDisableMessageID() const =0
Gets if Message Ids are disabled for this Producer.
virtual void send(cms::Message *message, int deliveryMode, int priority, long long timeToLive, cms::AsyncCallback *onComplete)
Sends the message to the default producer destination, but does not take ownership of the message...
Definition: CachedProducer.h:66
virtual cms::MessageTransformer * getMessageTransformer() const
Gets the currently configured MessageTransformer for this MessageProducer.
Definition: CachedProducer.h:130
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...
Definition: CachedProducer.h:62
virtual void setDisableMessageTimeStamp(bool value)=0
Sets if Message Time Stamps are disabled for this Producer.
virtual bool getDisableMessageTimeStamp() const =0
Gets if Message Time Stamps are disabled for this Producer.
virtual void setDisableMessageTimeStamp(bool value)
Sets if Message Time Stamps are disabled for this Producer.
Definition: CachedProducer.h:102
virtual void setTimeToLive(long long time)=0
Sets the Time to Live that this Producers sends messages with.
virtual int getPriority() const =0
Gets the Priority level that this producer sends messages at.
virtual void setDisableMessageID(bool value)
Sets if Message Ids are disabled for this Producer.
Definition: CachedProducer.h:94
virtual long long getTimeToLive() const =0
Gets the Time to Live that this producer sends messages with.
virtual void setPriority(int priority)=0
Sets the Priority that this Producers sends messages at.
virtual void setMessageTransformer(cms::MessageTransformer *transformer)
Set an MessageTransformer instance that is applied to all cms::Message objects before they are sent o...
Definition: CachedProducer.h:126
virtual void setTimeToLive(long long time)
Sets the Time to Live that this Producers sends messages with.
Definition: CachedProducer.h:118
virtual int getDeliveryMode() const
Gets the delivery mode for this Producer.
Definition: CachedProducer.h:90
virtual void send(cms::Message *message)
Sends the message to the default producer destination, but does not take ownership of the message...
Definition: CachedProducer.h:54
A client uses a MessageProducer object to send messages to a Destination.
Definition: MessageProducer.h:60
virtual int getDeliveryMode() const =0
Gets the delivery mode for this Producer.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
virtual void setPriority(int priority)
Sets the Priority that this Producers sends messages at.
Definition: CachedProducer.h:110
A cached message producer contained within a pooled session.
Definition: CachedProducer.h:30
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...
Definition: CachedProducer.h:70
virtual void setDisableMessageID(bool value)=0
Sets if Message Ids are disabled for this Producer.
virtual void setDeliveryMode(int mode)
Sets the delivery mode for this Producer.
Definition: CachedProducer.h:86
virtual void send(const cms::Destination *destination, cms::Message *message, cms::AsyncCallback *onComplete)
Sends the message to the designated destination, but does not take ownership of the message...
Definition: CachedProducer.h:74
virtual cms::MessageTransformer * getMessageTransformer() const =0
Gets the currently configured MessageTransformer for this MessageProducer.
virtual void close()
Does nothing - the real producer resource will be closed by the lifecycle manager.
Definition: CachedProducer.h:50
virtual bool getDisableMessageID() const
Gets if Message Ids are disabled for this Producer.
Definition: CachedProducer.h:98