![]() |
Open Lighting Architecture 0.10.9
|
A backoff policy will calculate how long to wait before retrying an event given the number of previous failed attempts.
Public Member Functions | |
virtual TimeInterval | BackOffTime (unsigned int failed_attempts) const =0 |
Calculate the backoff time. | |
|
pure virtual |
Calculate the backoff time.
failed_attempts | is the number of unsuccessful connection attempts since the last successful connection. |
Implemented in ola::ConstantBackoffPolicy, ola::ExponentialBackoffPolicy, and ola::LinearBackoffPolicy.