#include <src/main/activemq/threads/DedicatedTaskRunner.h>
|
virtual void | run () |
| Run method - called by the Thread class in the context of the thread. More...
|
|
activemq::threads::DedicatedTaskRunner::DedicatedTaskRunner |
( |
Task * |
task | ) |
|
virtual activemq::threads::DedicatedTaskRunner::~DedicatedTaskRunner |
( |
| ) |
|
|
virtual |
virtual bool activemq::threads::DedicatedTaskRunner::isStarted |
( |
| ) |
const |
|
virtual |
virtual void activemq::threads::DedicatedTaskRunner::run |
( |
| ) |
|
|
protectedvirtual |
virtual void activemq::threads::DedicatedTaskRunner::shutdown |
( |
long long |
timeout | ) |
|
|
virtual |
Shutdown after a timeout, does not guarantee that the task's iterate method has completed and the thread halted.
- Parameters
-
timeout | - Time in Milliseconds to wait for the task to stop. |
Implements activemq::threads::TaskRunner.
virtual void activemq::threads::DedicatedTaskRunner::shutdown |
( |
| ) |
|
|
virtual |
virtual void activemq::threads::DedicatedTaskRunner::start |
( |
| ) |
|
|
virtual |
Starts the task runner.
Prior to call this method tasks can be added to a Runner, but no executions will occur. The start method will create the background Thread(s) which do the work for this task runner.
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.
The documentation for this class was generated from the following file: