18#ifndef _CMS_MESSAGEPRODUCER_H_
19#define _CMS_MESSAGEPRODUCER_H_
125 virtual void send(
Message* message,
int deliveryMode,
int priority,
long long timeToLive) = 0;
153 virtual void send(
Message* message,
int deliveryMode,
int priority,
223 int deliveryMode,
int priority,
long long timeToLive) = 0;
254 int priority,
long long timeToLive,
AsyncCallback* onComplete) = 0;
Asynchronous event interface for CMS asynchronous operations.
Definition AsyncCallback.h:37
Interface for a class that implements the close method.
Definition Closeable.h:35
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
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 void setDisableMessageID(bool value)=0
Sets if Message Ids are disabled for this Producer.
virtual void send(Message *message, AsyncCallback *onComplete)=0
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual int getPriority() const =0
Gets the Priority level that this producer sends messages at.
virtual void send(const Destination *destination, Message *message, int deliveryMode, int priority, long long timeToLive)=0
Sends the message to the designated destination, but does not take ownership of the message,...
virtual void send(const Destination *destination, Message *message)=0
Sends the message to the designated destination, but does not take ownership of the message,...
virtual long long getTimeToLive() const =0
Gets the Time to Live that this producer sends messages with.
virtual void send(const Destination *destination, Message *message, AsyncCallback *onComplete)=0
Sends the message to the designated destination, but does not take ownership of the message,...
virtual void send(Message *message)=0
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual void setTimeToLive(long long time)=0
Sets the Time to Live that this Producers sends messages with.
virtual void setPriority(int priority)=0
Sets the Priority that this Producers sends messages at.
virtual void setDisableMessageTimeStamp(bool value)=0
Sets if Message Time Stamps are disabled for this Producer.
virtual void send(const Destination *destination, Message *message, int deliveryMode, int priority, long long timeToLive, AsyncCallback *onComplete)=0
Sends the message to the designated destination, but does not take ownership of the message,...
virtual cms::MessageTransformer * getMessageTransformer() const =0
Gets the currently configured MessageTransformer for this MessageProducer.
virtual ~MessageProducer()
virtual void setDeliveryMode(int mode)=0
Sets the delivery mode for this Producer.
virtual bool getDisableMessageTimeStamp() const =0
Gets if Message Time Stamps are disabled for this Producer.
virtual bool getDisableMessageID() const =0
Gets if Message Ids are disabled for this Producer.
virtual void send(Message *message, int deliveryMode, int priority, long long timeToLive)=0
Sends the message to the default producer destination, but does not take ownership of the message,...
virtual int getDeliveryMode() const =0
Gets the delivery mode for this Producer.
virtual void send(Message *message, int deliveryMode, int priority, long long timeToLive, AsyncCallback *onComplete)=0
Sends the message to the default producer destination, but does not take ownership of the message,...
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23