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;
419 virtual AcknowledgeMode getAcknowledgeMode()
const = 0;
428 virtual bool isTransacted()
const = 0;
446 virtual void unsubscribe(
const std::string& name) = 0;