activemq-cpp-3.3.0

activemq::threads::DedicatedTaskRunner Class Reference

#include <src/main/activemq/threads/DedicatedTaskRunner.h>

Inheritance diagram for activemq::threads::DedicatedTaskRunner:

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.

Constructor & Destructor Documentation

activemq::threads::DedicatedTaskRunner::DedicatedTaskRunner ( Task task)
virtual activemq::threads::DedicatedTaskRunner::~DedicatedTaskRunner ( ) [virtual]

Member Function Documentation

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.

Parameters:
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.


The documentation for this class was generated from the following file: