Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::ConstantBackoffPolicy Class Reference

Detailed Description

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

Inheritance diagram for ola::ConstantBackoffPolicy:
ola::BackOffPolicy

Public Member Functions

 ConstantBackoffPolicy (const TimeInterval &duration)
TimeInterval BackOffTime (unsigned int) const

Member Function Documentation

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

Failed attempts is the number of unsuccessfull connection attempts since the last successful connection.

Implements ola::BackOffPolicy.


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