#include <Session.h>
Inheritance diagram for cms::Session:
Public Types | |
enum | AcknowledgeMode { AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, SESSION_TRANSACTED } |
Public Member Functions | |
virtual | ~Session (void) |
virtual void | commit (void)=0 throw ( CMSException ) |
virtual void | rollback (void)=0 throw ( CMSException ) |
virtual MessageConsumer * | createConsumer (const Destination *destination)=0 throw ( CMSException ) |
virtual MessageConsumer * | createConsumer (const Destination *destination, const std::string &selector)=0 throw ( CMSException ) |
virtual MessageConsumer * | createDurableConsumer (const Topic *destination, const std::string &name, const std::string &selector, bool noLocal=false)=0 throw ( CMSException ) |
virtual MessageProducer * | createProducer (const Destination *destination)=0 throw ( CMSException ) |
virtual Queue * | createQueue (const std::string &queueName)=0 throw ( CMSException ) |
virtual Topic * | createTopic (const std::string &topicName)=0 throw ( CMSException ) |
virtual TemporaryQueue * | createTemporaryQueue (void)=0 throw ( CMSException ) |
virtual TemporaryTopic * | createTemporaryTopic (void)=0 throw ( CMSException ) |
virtual Message * | createMessage (void)=0 throw ( CMSException ) |
virtual BytesMessage * | createBytesMessage (void)=0 throw ( CMSException) |
virtual BytesMessage * | createBytesMessage (const unsigned char *bytes, unsigned long bytesSize)=0 throw ( CMSException) |
virtual TextMessage * | createTextMessage (void)=0 throw ( CMSException ) |
virtual TextMessage * | createTextMessage (const std::string &text)=0 throw ( CMSException ) |
virtual MapMessage * | createMapMessage (void)=0 throw ( CMSException ) |
virtual AcknowledgeMode | getAcknowledgeMode (void) const =0 |
virtual bool | isTransacted (void) const =0 |
|
|
|
|
Commits all messages done in this transaction and releases any locks currently held.
|
|
Creates a BytesMessage and sets the paylod to the passed value
|
|
Creates a BytesMessage
|
|
Creates a MessageConsumer for the specified destination, using a message selector.
|
|
Creates a MessageConsumer for the specified destination.
|
|
Creates a durable subscriber to the specified topic, using a message selector
|
|
Creates a new MapMessage
|
|
Creates a new Message
|
|
Creates a MessageProducer to send messages to the specified destination.
|
|
Creates a queue identity given a Queue name.
|
|
Creates a TemporaryQueue object.
|
|
Creates a TemporaryTopic object.
|
|
Creates a new TextMessage and set the text to the value given
|
|
Creates a new TextMessage
|
|
Creates a topic identity given a Queue name.
|
|
Returns the acknowledgement mode of the session.
|
|
Gets if the Sessions is a Transacted Session
|
|
Rollsback all messages done in this transaction and releases any locks currently held.
|