Open Lighting Architecture
0.10.4
|
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. More... | |
|
pure virtual |
Calculate the backoff time.
failed_attempts | is the number of unsuccessfull connection attempts since the last successful connection. |
Implemented in ola::ExponentialBackoffPolicy, ola::LinearBackoffPolicy, and ola::ConstantBackoffPolicy.