General backoff timer.
More...
#include <BackoffTimer.h>
| trippingcyril::timing::BackoffTimer::BackoffTimer |
( |
const Module * |
module, |
|
|
double |
start_step = 15.0, |
|
|
double |
step = 15.0, |
|
|
double |
max_interval = 300.0 |
|
) |
| |
General constructor
- Parameters
-
| module | The module to register this backoff timer on |
| start_step | At what interval should we start backing off? |
| step | With what steps should we increase the interval |
| max_interval | At what interval should we stop increasing the interval |
| virtual trippingcyril::timing::BackoffTimer::~BackoffTimer |
( |
| ) |
|
|
virtual |
| virtual void trippingcyril::timing::BackoffTimer::RunJob |
( |
| ) |
|
|
protectedpure virtual |
Implement your actual logic here.
| void trippingcyril::timing::BackoffTimer::SetStillFailing |
( |
| ) |
|
Call this to indicate you're still failing and we should continue backing off
The documentation for this class was generated from the following file: