Open Lighting Architecture
0.9.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. |
|
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.