Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::ConstantBackoffPolicy Class Reference

Detailed Description

Constant time back off policy. For a duration of 1s we'd produce. 1, 1, 1, 1, 1, ...

Inheritance diagram for ola::ConstantBackoffPolicy:
Inheritance graph
[legend]
Collaboration diagram for ola::ConstantBackoffPolicy:
Collaboration graph
[legend]

Public Member Functions

 ConstantBackoffPolicy (const TimeInterval &duration)
 
TimeInterval BackOffTime (unsigned int) const
 Calculate the backoff time. More...
 

Member Function Documentation

◆ BackOffTime()

TimeInterval ola::ConstantBackoffPolicy::BackOffTime ( unsigned  failed_attempts) const
inlinevirtual

Calculate the backoff time.

Parameters
failed_attemptsis the number of unsuccessful connection attempts since the last successful connection.
Returns
how long to wait before the next attempt

Implements ola::BackOffPolicy.


The documentation for this class was generated from the following file: