Open Lighting Architecture
|
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 |
|
inlinevirtual |
Failed attempts is the number of unsuccessfull connection attempts since the last successful connection.
Implements ola::BackOffPolicy.