activemq-cpp-3.6.0
|
Represents a single task that can be part of a set of Tasks that are contained in a CompositeTaskRunner
.
More...
#include <src/main/activemq/threads/CompositeTask.h>
Public Member Functions | |
virtual | ~CompositeTask () |
virtual bool | isPending () const =0 |
Indicates whether this task has any pending work that needs to be done, if not then it is skipped and the next Task in the CompositeTaskRunner's list of tasks is checked, if none of the tasks have any pending work to do, then the runner can go to sleep until it awakened by a call to wakeup . | |
![]() | |
virtual | ~Task () |
virtual bool | iterate ()=0 |
Perform one iteration of work, returns true if the task needs to run again to complete or false to indicate that the task is now complete. |
Represents a single task that can be part of a set of Tasks that are contained in a CompositeTaskRunner
.
|
virtual |
|
pure virtual |
Indicates whether this task has any pending work that needs to be done, if not then it is skipped and the next Task in the CompositeTaskRunner's list of tasks is checked, if none of the tasks have any pending work to do, then the runner can go to sleep until it awakened by a call to wakeup
.
Implemented in activemq::transport::failover::FailoverTransport, activemq::transport::failover::BackupTransportPool, and activemq::transport::failover::CloseTransportsTask.