Open Lighting Architecture
0.10.4
|
A backoff policy which is: t = failed_attempts * duration For a duration of 1 and a max of 5 we'd produce: 0, 1, 2, 3, 4, 5, 5, 5, ...
Public Member Functions | |
LinearBackoffPolicy (const TimeInterval &duration, const TimeInterval &max) | |
TimeInterval | BackOffTime (unsigned int failed_attempts) const |
Calculate the backoff time. More... | |
|
inlinevirtual |
Calculate the backoff time.
failed_attempts | is the number of unsuccessfull connection attempts since the last successful connection. |
Implements ola::BackOffPolicy.