7 #ifndef ASIOLINK_INTERVAL_TIMER_H
8 #define ASIOLINK_INTERVAL_TIMER_H 1
10 #include <boost/shared_ptr.hpp>
18 class IntervalTimerImpl;
113 void setup(
const Callback& cbfunc,
const long interval,
135 boost::shared_ptr<IntervalTimerImpl> impl_;
142 #endif // ASIOLINK_INTERVAL_TIMER_H
void cancel()
Cancel the timer.
long getInterval() const
Return the timer interval.
std::function< void()> Callback
The IOService class is a wrapper for the ASIO io_service class.
The IntervalTimer class is a wrapper for the ASIO boost::asio::deadline_timer class.
Mode
Defines possible timer modes used to setup a timer.
boost::shared_ptr< isc::asiolink::IntervalTimer > IntervalTimerPtr
~IntervalTimer()
The destructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
A wrapper interface for the ASIO library.
void setup(const Callback &cbfunc, const long interval, const Mode &mode=REPEATING)
Register timer callback function and interval.