Kea  1.5.0
isc::process::IOSignal::TimerCallback Class Reference

Defines the callback used by IOSignal's internal timer. More...

#include <io_service_signal.h>

+ Inheritance diagram for isc::process::IOSignal::TimerCallback:

Public Member Functions

 TimerCallback (IOSignalId sequence_id, IOSignalHandler handler)
 Constructor. More...
 
void operator() ()
 () Operator which serves as the timer's callback More...
 

Detailed Description

Defines the callback used by IOSignal's internal timer.

This class stores the sequence_id of the IOSignal being sent and the IOSignalHandler to invoke when delivering the signal. The () operator is called by IOService when the timer expires. This method invokes the IOSignalHandler passing it the sequence_id.

Definition at line 142 of file io_service_signal.h.

Constructor & Destructor Documentation

◆ TimerCallback()

isc::process::IOSignal::TimerCallback::TimerCallback ( IOSignalId  sequence_id,
IOSignalHandler  handler 
)

Constructor.

Parameters
sequence_idsequence_id of the IOSignal to handle
handlerpointer to the function to handle the IOSignal
Exceptions
IOSignalErrorif handler is null.

Definition at line 41 of file io_service_signal.cc.

References isc_throw.

Member Function Documentation

◆ operator()()

void isc::process::IOSignal::TimerCallback::operator() ( )

() Operator which serves as the timer's callback

It is invoked when the timer expires and calls the handler passing in the signal.

Definition at line 50 of file io_service_signal.cc.

References isc::process::dctl_logger, and LOG_ERROR.


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