18 #ifndef ACTIVEMQ_CORE_ACTIVEMQSESSIONEXECUTOR_ 19 #define ACTIVEMQ_CORE_ACTIVEMQSESSIONEXECUTOR_ 32 class ActiveMQSessionKernel;
38 class ActiveMQConsumer;
91 this->messageQueue->clear();
98 return !messageQueue->isClosed() && messageQueue->isRunning() && !messageQueue->isEmpty();
104 virtual void wakeup();
109 virtual void start();
121 this->messageQueue->close();
128 return this->messageQueue->isRunning();
135 return messageQueue->isEmpty();
142 this->messageQueue->clear();
151 virtual bool iterate();
158 return messageQueue->removeAll();
virtual void close()
Terminates the dispatching thread.
Definition: ActiveMQSessionExecutor.h:120
Represents a unit of work that requires one or more iterations to complete.
Definition: Task.h:31
virtual bool isRunning() const
Definition: ActiveMQSessionExecutor.h:127
#define AMQCPP_API
Definition: Config.h:30
virtual bool isEmpty()
Definition: ActiveMQSessionExecutor.h:134
std::vector< Pointer< MessageDispatch > > getUnconsumedMessages()
Definition: ActiveMQSessionExecutor.h:157
virtual bool hasUncomsumedMessages() const
Definition: ActiveMQSessionExecutor.h:97
Definition: MessageDispatch.h:50
Delegate dispatcher for a single session.
Definition: ActiveMQSessionExecutor.h:44
virtual void clearMessagesInProgress()
Removes all messages in the Dispatch Channel so that non are delivered.
Definition: ActiveMQSessionExecutor.h:90
virtual void clear()
Removes all queued messages and destroys them.
Definition: ActiveMQSessionExecutor.h:141
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: ActiveMQSessionKernel.h:65
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