activemq::core::ActiveMQProducer Class Reference

#include <ActiveMQProducer.h>

Inheritance diagram for activemq::core::ActiveMQProducer:

activemq::core::ActiveMQSessionResource List of all members.

Public Member Functions

 ActiveMQProducer (connector::ProducerInfo *producerInfo, ActiveMQSession *session)
virtual ~ActiveMQProducer (void)
virtual void send (cms::Message *message) throw ( cms::CMSException )
virtual void send (const cms::Destination *destination, cms::Message *message) throw ( cms::CMSException )
virtual void setDeliveryMode (int mode)
virtual int getDeliveryMode (void) const
virtual void setDisableMessageId (bool value)
virtual bool getDisableMessageId (void) const
virtual void setDisableMessageTimeStamp (bool value)
virtual bool getDisableMessageTimeStamp (void) const
virtual void setPriority (int priority)
virtual int getPriority (void) const
virtual void setTimeToLive (int time)
virtual int getTimeToLive (void) const
virtual connector::ConnectorResourcegetConnectorResource (void)
virtual connector::ProducerInfogetProducerInfo (void)

Private Attributes

int deliveryMode
bool disableMsgId
bool disableTimestamps
int priority
int timeToLive
ActiveMQSessionsession
connector::ProducerInfoproducerInfo

Constructor & Destructor Documentation

ActiveMQProducer::ActiveMQProducer connector::ProducerInfo producerInfo,
ActiveMQSession session
 

Constructor

ActiveMQProducer::~ActiveMQProducer void   )  [virtual]
 


Member Function Documentation

virtual connector::ConnectorResource* activemq::core::ActiveMQProducer::getConnectorResource void   )  [inline, virtual]
 

Retrieve the Connector resource that is associated with this Session resource.

Returns:
pointer to a Connector Resource, can be NULL

Implements activemq::core::ActiveMQSessionResource.

virtual int activemq::core::ActiveMQProducer::getDeliveryMode void   )  const [inline, virtual]
 

Gets the delivery mode for this Producer

Returns:
The DeliveryMode

virtual bool activemq::core::ActiveMQProducer::getDisableMessageId void   )  const [inline, virtual]
 

Sets if Message Ids are disbled for this Producer

Parameters:
boolean indicating enable / disable (true / false)

virtual bool activemq::core::ActiveMQProducer::getDisableMessageTimeStamp void   )  const [inline, virtual]
 

Sets if Message Time Stamps are disbled for this Producer

Parameters:
boolean indicating enable / disable (true / false)

virtual int activemq::core::ActiveMQProducer::getPriority void   )  const [inline, virtual]
 

Gets the Priority level that this producer sends messages at

Returns:
int based priority level

virtual connector::ProducerInfo* activemq::core::ActiveMQProducer::getProducerInfo void   )  [inline, virtual]
 

Retrives this object ProducerInfo pointer

Returns:
ProducerInfo pointer

virtual int activemq::core::ActiveMQProducer::getTimeToLive void   )  const [inline, virtual]
 

Gets the Time to Live that this producer sends messages with

Returns:
int based Time to Live

void ActiveMQProducer::send const cms::Destination *  destination,
cms::Message *  message
throw ( cms::CMSException ) [virtual]
 

Sends the message to the designated destination.

Parameters:
a Message Object Pointer
Exceptions:
CMSException 

void ActiveMQProducer::send cms::Message *  message  )  throw ( cms::CMSException ) [virtual]
 

Sends the message to the default producer destination.

Parameters:
a Message Object Pointer
Exceptions:
CMSException 

virtual void activemq::core::ActiveMQProducer::setDeliveryMode int  mode  )  [inline, virtual]
 

Sets the delivery mode for this Producer

Parameters:
The DeliveryMode

virtual void activemq::core::ActiveMQProducer::setDisableMessageId bool  value  )  [inline, virtual]
 

Sets if Message Ids are disbled for this Producer

Parameters:
boolean indicating enable / disable (true / false)

virtual void activemq::core::ActiveMQProducer::setDisableMessageTimeStamp bool  value  )  [inline, virtual]
 

Sets if Message Time Stamps are disbled for this Producer

Parameters:
boolean indicating enable / disable (true / false)

virtual void activemq::core::ActiveMQProducer::setPriority int  priority  )  [inline, virtual]
 

Sets the Priority that this Producers sends messages at

Parameters:
int value for Priority level

virtual void activemq::core::ActiveMQProducer::setTimeToLive int  time  )  [inline, virtual]
 

Sets the Time to Live that this Producers sends messages with

Parameters:
int value for time to live


Member Data Documentation

int activemq::core::ActiveMQProducer::deliveryMode [private]
 

bool activemq::core::ActiveMQProducer::disableMsgId [private]
 

bool activemq::core::ActiveMQProducer::disableTimestamps [private]
 

int activemq::core::ActiveMQProducer::priority [private]
 

connector::ProducerInfo* activemq::core::ActiveMQProducer::producerInfo [private]
 

ActiveMQSession* activemq::core::ActiveMQProducer::session [private]
 

int activemq::core::ActiveMQProducer::timeToLive [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 18:03:32 2006 for activemq-cpp by  doxygen 1.4.5