17 #ifndef _CMS_SESSION_H_ 18 #define _CMS_SESSION_H_ 40 class MessageTransformer;
146 INDIVIDUAL_ACKNOWLEDGE
160 virtual void close() = 0;
169 virtual void commit() = 0;
178 virtual void rollback() = 0;
200 virtual void recover() = 0;
276 virtual MessageConsumer* createDurableConsumer(
const Topic* destination,
const std::string& name,
const std::string& selector,
bool noLocal =
false) = 0;
326 virtual Queue* createQueue(
const std::string& queueName) = 0;
337 virtual Topic* createTopic(
const std::string& topicName) = 0;
360 virtual Message* createMessage() = 0;
379 virtual BytesMessage* createBytesMessage(
const unsigned char* bytes,
int bytesSize) = 0;
403 virtual TextMessage* createTextMessage(
const std::string& text) = 0;
428 virtual bool isTransacted()
const = 0;
446 virtual void unsubscribe(
const std::string& name) = 0;
An interface encapsulating a provider-specific topic name.
Definition: Topic.h:36
With this acknowledgment mode, the session automatically acknowledges a client's receipt of a message...
Definition: Session.h:128
Root of all messages.
Definition: Message.h:88
Defines a Temporary Topic based Destination.
Definition: TemporaryTopic.h:39
A Destination object encapsulates a provider-specific address.
Definition: Destination.h:39
AcknowledgeMode
Definition: Session.h:108
#define NULL
Definition: Config.h:33
With this acknowledgment mode, the session automatically acknowledges a client's receipt of a message...
Definition: Session.h:117
Interface for a class that implements the close method.
Definition: Closeable.h:35
This class implements in interface for browsing the messages in a Queue without removing them...
Definition: QueueBrowser.h:53
Messages will be consumed when the transaction commits.
Definition: Session.h:139
A BytesMessage object is used to send a message containing a stream of unsigned bytes.
Definition: BytesMessage.h:66
#define CMS_API
Definition: Config.h:31
Defines a Temporary Queue based Destination.
Definition: TemporaryQueue.h:39
A Session object is a single-threaded context for producing and consuming messages.
Definition: Session.h:105
With this acknowledgment mode, the client acknowledges a consumed message by calling the message's ac...
Definition: Session.h:134
A MapMessage object is used to send a set of name-value pairs.
Definition: MapMessage.h:71
Interface for a StreamMessage.
Definition: StreamMessage.h:61
Interface for a class that implements the stop method.
Definition: Stoppable.h:36
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: DestinationResolver.h:23
A client uses a MessageProducer object to send messages to a Destination.
Definition: MessageProducer.h:60
A client uses a MessageConsumer to received messages from a destination.
Definition: MessageConsumer.h:63
Interface for a class that implements the start method.
Definition: Startable.h:36
Interface for a text message.
Definition: TextMessage.h:41
An interface encapsulating a provider-specific queue name.
Definition: Queue.h:37