activemq-cpp-3.4.0

activemq::threads::Scheduler Class Reference

Scheduler class for use in executing Runnable Tasks either periodically or one time only with optional delay. More...

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

Inheritance diagram for activemq::threads::Scheduler:

Public Member Functions

 Scheduler (const std::string &name)
virtual ~Scheduler ()
void executePeriodically (decaf::lang::Runnable *task, long long period, bool ownsTask=true)
void schedualPeriodically (decaf::lang::Runnable *task, long long period, bool ownsTask=true)
void cancel (decaf::lang::Runnable *task)
void executeAfterDelay (decaf::lang::Runnable *task, long long delay, bool ownsTask=true)
void shutdown ()

Protected Member Functions

virtual void doStart ()
 Performs the actual start operation on the service, acquiring all the resources needed to run the service.
virtual void doStop (activemq::util::ServiceStopper *stopper)
 Performs the actual stop operation on the service, ensuring that all resources held are released, must be implemented in derived class.

Detailed Description

Scheduler class for use in executing Runnable Tasks either periodically or one time only with optional delay.

Since:
3.3.0

Constructor & Destructor Documentation

activemq::threads::Scheduler::Scheduler ( const std::string &  name)
virtual activemq::threads::Scheduler::~Scheduler ( ) [virtual]

Member Function Documentation

void activemq::threads::Scheduler::cancel ( decaf::lang::Runnable task)
virtual void activemq::threads::Scheduler::doStart ( ) [protected, virtual]

Performs the actual start operation on the service, acquiring all the resources needed to run the service.

Must be implemented in derived class.

Implements activemq::util::ServiceSupport.

virtual void activemq::threads::Scheduler::doStop ( activemq::util::ServiceStopper stopper) [protected, virtual]

Performs the actual stop operation on the service, ensuring that all resources held are released, must be implemented in derived class.

Implements activemq::util::ServiceSupport.

void activemq::threads::Scheduler::executeAfterDelay ( decaf::lang::Runnable task,
long long  delay,
bool  ownsTask = true 
)
void activemq::threads::Scheduler::executePeriodically ( decaf::lang::Runnable task,
long long  period,
bool  ownsTask = true 
)
void activemq::threads::Scheduler::schedualPeriodically ( decaf::lang::Runnable task,
long long  period,
bool  ownsTask = true 
)
void activemq::threads::Scheduler::shutdown ( )

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