activemq-cpp-3.3.0
|
#include <src/main/activemq/threads/DedicatedTaskRunner.h>
Public Member Functions | |
DedicatedTaskRunner (Task *task) | |
virtual | ~DedicatedTaskRunner () |
virtual void | shutdown (unsigned int timeout) |
Shutdown after a timeout, does not guarantee that the task's iterate method has completed and the thread halted. | |
virtual void | shutdown () |
Shutdown once the task has finished and the TaskRunner's thread has exited. | |
virtual void | wakeup () |
Signal the TaskRunner to wakeup and execute another iteration cycle on the task, the Task instance will be run until its iterate method has returned false indicating it is done. | |
Protected Member Functions | |
virtual void | run () |
Run method - called by the Thread class in the context of the thread. |
activemq::threads::DedicatedTaskRunner::DedicatedTaskRunner | ( | Task * | task | ) |
virtual activemq::threads::DedicatedTaskRunner::~DedicatedTaskRunner | ( | ) | [virtual] |
virtual void activemq::threads::DedicatedTaskRunner::run | ( | ) | [protected, virtual] |
Run method - called by the Thread class in the context of the thread.
Implements decaf::lang::Runnable.
virtual void activemq::threads::DedicatedTaskRunner::shutdown | ( | ) | [virtual] |
Shutdown once the task has finished and the TaskRunner's thread has exited.
Implements activemq::threads::TaskRunner.
virtual void activemq::threads::DedicatedTaskRunner::shutdown | ( | unsigned int | timeout | ) | [virtual] |
Shutdown after a timeout, does not guarantee that the task's iterate method has completed and the thread halted.
timeout | - Time in Milliseconds to wait for the task to stop. |
Implements activemq::threads::TaskRunner.
virtual void activemq::threads::DedicatedTaskRunner::wakeup | ( | ) | [virtual] |
Signal the TaskRunner to wakeup and execute another iteration cycle on the task, the Task instance will be run until its iterate method has returned false indicating it is done.
Implements activemq::threads::TaskRunner.