18 #ifndef _ACTIVEMQ_CORE_KERNELS_ACTIVEMQSESSIONKERNEL_H_
19 #define _ACTIVEMQ_CORE_KERNELS_ACTIVEMQSESSIONKERNEL_H_
52 class ActiveMQConnection;
53 class ActiveMQConsumer;
54 class ActiveMQProducer;
55 class ActiveMQSessionExecutor;
97 std::auto_ptr<ActiveMQSessionExecutor>
executor;
147 virtual void start();
158 bool isStarted()
const;
191 virtual void close();
193 virtual void commit();
195 virtual void rollback();
197 virtual void recover();
202 const std::string& selector);
205 const std::string& selector,
209 const std::string& name,
210 const std::string& selector,
211 bool noLocal =
false);
219 virtual cms::Queue* createQueue(
const std::string& queueName);
221 virtual cms::Topic* createTopic(
const std::string& topicName);
231 virtual cms::BytesMessage* createBytesMessage(
const unsigned char* bytes,
int bytesSize);
243 virtual bool isTransacted()
const;
245 virtual void unsubscribe(
const std::string& name);
277 cms::Message* message,
int deliveryMode,
int priority,
long long timeToLive,
313 return *( this->sessionInfo );
323 return *( this->sessionInfo->getSessionId() );
330 return this->connection;
344 return this->lastDeliveredSequenceId;
354 this->lastDeliveredSequenceId = value;
437 virtual void doStartTransaction();
445 return this->transaction;
543 bool iterateConsumers();
551 long long getNextProducerSequenceId() {
552 return this->producerSequenceIds.getNextSequenceId();
556 void checkClosed()
const;
571 std::string createTemporaryDestinationName();