17 #ifndef _ACTIVEMQ_CORE_ACTIVEMQSESSION_H_ 18 #define _ACTIVEMQ_CORE_ACTIVEMQSESSION_H_ 40 class ActiveMQConnection;
80 virtual void commit();
82 virtual void rollback();
84 virtual void recover();
89 const std::string& selector);
92 const std::string& selector,
96 const std::string& name,
97 const std::string& selector,
98 bool noLocal =
false);
106 virtual cms::Queue* createQueue(
const std::string& queueName);
108 virtual cms::Topic* createTopic(
const std::string& topicName);
118 virtual cms::BytesMessage* createBytesMessage(
const unsigned char* bytes,
int bytesSize);
136 virtual void unsubscribe(
const std::string& name);
bool isStarted() const
Indicates whether or not the session is currently in the started state.
An interface encapsulating a provider-specific topic name.
Definition: Topic.h:36
virtual cms::Session::AcknowledgeMode getAcknowledgeMode() const
Returns the acknowledgment mode of the session.
Definition: ActiveMQSession.h:128
const commands::SessionInfo & getSessionInfo() const
Gets the Session Information object for this session, if the session is closed than this method throw...
Definition: ActiveMQSession.h:176
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
#define AMQCPP_API
Definition: Config.h:30
AcknowledgeMode
Definition: Session.h:108
virtual bool isTransacted() const
Gets if the Sessions is a Transacted Session.
Definition: ActiveMQSession.h:132
Definition: SessionInfo.h:48
virtual void setMessageTransformer(cms::MessageTransformer *transformer)
Set an MessageTransformer instance that is passed on to all MessageProducer and MessageConsumer objec...
This class implements in interface for browsing the messages in a Queue without removing them...
Definition: QueueBrowser.h:53
If a CMS provider detects a serious problem, it notifies the client application through an ExceptionL...
Definition: ExceptionListener.h:37
virtual cms::Session::AcknowledgeMode getAcknowledgeMode() const
Returns the acknowledgment mode of the session.
virtual cms::MessageTransformer * getMessageTransformer() const
Gets the currently configured MessageTransformer for this Session.
A BytesMessage object is used to send a message containing a stream of unsigned bytes.
Definition: BytesMessage.h:66
ActiveMQConnection * getConnection() const
Gets the ActiveMQConnection that is associated with this session.
Definition: ActiveMQSessionKernel.h:330
Defines a Temporary Queue based Destination.
Definition: TemporaryQueue.h:39
virtual bool isTransacted() const
Gets if the Sessions is a Transacted Session.
A Session object is a single-threaded context for producing and consuming messages.
Definition: Session.h:105
virtual void setMessageTransformer(cms::MessageTransformer *transformer)
Set an MessageTransformer instance that is passed on to all MessageProducer and MessageConsumer objec...
Definition: ActiveMQSession.h:158
const commands::SessionInfo & getSessionInfo() const
Gets the Session Information object for this session, if the session is closed than this method throw...
Definition: ActiveMQSessionKernel.h:312
A MapMessage object is used to send a set of name-value pairs.
Definition: MapMessage.h:71
bool isStarted() const
Indicates whether or not the session is currently in the started state.
Definition: ActiveMQSession.h:72
Interface for a StreamMessage.
Definition: StreamMessage.h:61
A boolean value that may be updated atomically.
Definition: AtomicBoolean.h:34
cms::ExceptionListener * getExceptionListener()
This method gets any registered exception listener of this sessions connection and returns it...
A client uses a MessageProducer object to send messages to a Destination.
Definition: MessageProducer.h:60
Pointer< activemq::core::kernels::ActiveMQSessionKernel > kernel
Definition: ActiveMQSession.h:45
A client uses a MessageConsumer to received messages from a destination.
Definition: MessageConsumer.h:63
Definition: ActiveMQSession.h:42
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: SessionId.h:51
const commands::SessionId & getSessionId() const
Gets the Session Id object for this session, if the session is closed than this method throws an exce...
Definition: ActiveMQSession.h:185
ActiveMQConnection * getConnection() const
Gets the ActiveMQConnection that is associated with this session.
Definition: ActiveMQSession.h:192
virtual cms::MessageTransformer * getMessageTransformer() const
Gets the currently configured MessageTransformer for this Session.
Definition: ActiveMQSession.h:167
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
Concrete connection used for all connectors to the ActiveMQ broker.
Definition: ActiveMQConnection.h:60
Interface for a text message.
Definition: TextMessage.h:41
const commands::SessionId & getSessionId() const
Gets the Session Id object for this session, if the session is closed than this method throws an exce...
Definition: ActiveMQSessionKernel.h:322
An interface encapsulating a provider-specific queue name.
Definition: Queue.h:37
cms::ExceptionListener * getExceptionListener()
This method gets any registered exception listener of this sessions connection and returns it...
Definition: ActiveMQSession.h:147