templated implementation of timer handler More...
#include <timer_handler.hpp>
Public Member Functions | |
timer_handler_t (actor_base_t *owner_, request_id_t request_id_, Object *object_, Method method_) noexcept | |
constructs timer handler from non-owning pointer to timer, timer request id, delegate and callback (object method) | |
void | trigger (bool cancelled) noexcept override |
an action when timer was triggered or cancelled | |
Public Member Functions inherited from rotor::timer_handler_base_t | |
timer_handler_base_t (actor_base_t *owner_, request_id_t request_id_) noexcept | |
constructs timer handler from non-owning pointer to timer and timer request id | |
Public Attributes | |
Object * | object |
delegate object, i.e. that one on which the callback (method) will be invoked | |
Method | method |
timer callback | |
Public Attributes inherited from rotor::timer_handler_base_t | |
actor_base_t * | owner |
actor, which "owns" timer, i.e. where "start_timer" was invoked" | |
request_id_t | request_id |
timer identity (aka timer request id) | |
templated implementation of timer handler
|
inlineoverridevirtualnoexcept |
an action when timer was triggered or cancelled
Implements rotor::timer_handler_base_t.