Open Lighting Architecture
0.9.3
|
An exponential backoff policy. For an initial value of 1 and a max of 20 we'd produce: 0, 1, 2, 4, 8, 16, 20, 20, ...
Public Member Functions | |
ExponentialBackoffPolicy (const TimeInterval &initial, const TimeInterval &max) | |
TimeInterval | BackOffTime (unsigned int failed_attempts) const |
Calculate the backoff time. |
|
inlinevirtual |
Calculate the backoff time.
failed_attempts | is the number of unsuccessfull connection attempts since the last successful connection. |
Implements ola::BackOffPolicy.