11#include <boost/noncopyable.hpp>
12#include <boost/shared_ptr.hpp>
133 void setup(
const std::string& timer_name);
143 void cancel(
const std::string& timer_name);
std::function< void()> Callback
Mode
Defines possible timer modes used to setup a timer.
Manages a pool of asynchronous interval timers.
bool isTimerRegistered(const std::string &timer_name)
Checks if the timer with a specified name has been registered.
void setIOService(const asiolink::IOServicePtr &io_service)
Sets IO service to be used by the Timer Manager.
void setup(const std::string &timer_name)
Schedules the execution of the interval timer.
size_t timersCount() const
Returns the number of registered timers.
void unregisterTimers()
Unregisters all timers.
void cancel(const std::string &timer_name)
Cancels the execution of the interval timer.
void registerTimer(const std::string &timer_name, const asiolink::IntervalTimer::Callback &callback, const long interval, const asiolink::IntervalTimer::Mode &scheduling_mode)
Registers new timer in the TimerMgr.
void unregisterTimer(const std::string &timer_name)
Unregisters specified timer.
static const TimerMgrPtr & instance()
Returns pointer to the sole instance of the TimerMgr.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
boost::shared_ptr< TimerMgrImpl > TimerMgrImplPtr
boost::shared_ptr< TimerMgr > TimerMgrPtr
Type definition of the shared pointer to TimerMgr.
Defines the logger used by the top-level component of kea-lfc.