opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::ExponentialBackoffStrategy Class Referencefinal

Implements IOpenDelayStrategy using exponential-backoff. More...

#include <opendnp3/channel/IOpenDelayStrategy.h>

Public Member Functions

TimeDuration GetNextDelay (const TimeDuration &current, const TimeDuration &max) const final
 The the next delay based on the current and the maximum. More...
 
- Public Member Functions inherited from opendnp3::IOpenDelayStrategy
virtual ~IOpenDelayStrategy ()
 

Static Public Member Functions

static IOpenDelayStrategyInstance ()
 

Static Private Attributes

static ExponentialBackoffStrategy instance
 

Additional Inherited Members

- Private Member Functions inherited from opendnp3::Uncopyable
 Uncopyable ()=default
 
 Uncopyable (Uncopyable &&)=default
 
virtual ~Uncopyable ()=default
 
Uncopyableoperator= (Uncopyable &&)=default
 

Detailed Description

Implements IOpenDelayStrategy using exponential-backoff.

Definition at line 47 of file IOpenDelayStrategy.h.

Member Function Documentation

◆ GetNextDelay()

TimeDuration opendnp3::ExponentialBackoffStrategy::GetNextDelay ( const TimeDuration current,
const TimeDuration max 
) const
finalvirtual

The the next delay based on the current and the maximum.

Implements opendnp3::IOpenDelayStrategy.

◆ Instance()

static IOpenDelayStrategy& opendnp3::ExponentialBackoffStrategy::Instance ( )
static

Member Data Documentation

◆ instance

ExponentialBackoffStrategy opendnp3::ExponentialBackoffStrategy::instance
staticprivate

Definition at line 49 of file IOpenDelayStrategy.h.


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