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

Class used to configure how channel failures are retried. More...

#include <opendnp3/channel/ChannelRetry.h>

Public Member Functions

 ChannelRetry (TimeDuration minOpenRetry, TimeDuration maxOpenRetry, TimeDuration reconnectDelay=TimeDuration::Zero(), IOpenDelayStrategy &strategy=ExponentialBackoffStrategy::Instance())
 
TimeDuration NextDelay (const TimeDuration &current) const
 

Static Public Member Functions

static ChannelRetry Default ()
 Return the default configuration of exponential backoff from 1 sec to 1 minute. More...
 

Public Attributes

TimeDuration maxOpenRetry
 maximum connection retry interval on failure More...
 
TimeDuration minOpenRetry
 minimum connection retry interval on failure More...
 
TimeDuration reconnectDelay
 reconnect delay (defaults to zero) More...
 

Private Attributes

IOpenDelayStrategystrategy
 

Detailed Description

Class used to configure how channel failures are retried.

Definition at line 30 of file ChannelRetry.h.

Constructor & Destructor Documentation

◆ ChannelRetry()

opendnp3::ChannelRetry::ChannelRetry ( TimeDuration  minOpenRetry,
TimeDuration  maxOpenRetry,
TimeDuration  reconnectDelay = TimeDuration::Zero(),
IOpenDelayStrategy strategy = ExponentialBackoffStrategy::Instance() 
)

Member Function Documentation

◆ Default()

static ChannelRetry opendnp3::ChannelRetry::Default ( )
static

Return the default configuration of exponential backoff from 1 sec to 1 minute.

◆ NextDelay()

TimeDuration opendnp3::ChannelRetry::NextDelay ( const TimeDuration current) const
inline

Member Data Documentation

◆ maxOpenRetry

TimeDuration opendnp3::ChannelRetry::maxOpenRetry

maximum connection retry interval on failure

Definition at line 51 of file ChannelRetry.h.

Referenced by NextDelay().

◆ minOpenRetry

TimeDuration opendnp3::ChannelRetry::minOpenRetry

minimum connection retry interval on failure

Definition at line 49 of file ChannelRetry.h.

◆ reconnectDelay

TimeDuration opendnp3::ChannelRetry::reconnectDelay

reconnect delay (defaults to zero)

Definition at line 53 of file ChannelRetry.h.

◆ strategy

IOpenDelayStrategy& opendnp3::ChannelRetry::strategy
private

Definition at line 62 of file ChannelRetry.h.

Referenced by NextDelay().


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