opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
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 ¤t) 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 | |
IOpenDelayStrategy & | strategy |
Class used to configure how channel failures are retried.
Definition at line 30 of file ChannelRetry.h.
opendnp3::ChannelRetry::ChannelRetry | ( | TimeDuration | minOpenRetry, |
TimeDuration | maxOpenRetry, | ||
TimeDuration | reconnectDelay = TimeDuration::Zero() , |
||
IOpenDelayStrategy & | strategy = ExponentialBackoffStrategy::Instance() |
||
) |
|
static |
Return the default configuration of exponential backoff from 1 sec to 1 minute.
|
inline |
Definition at line 55 of file ChannelRetry.h.
References opendnp3::IOpenDelayStrategy::GetNextDelay(), maxOpenRetry, and strategy.
TimeDuration opendnp3::ChannelRetry::maxOpenRetry |
maximum connection retry interval on failure
Definition at line 51 of file ChannelRetry.h.
Referenced by NextDelay().
TimeDuration opendnp3::ChannelRetry::minOpenRetry |
minimum connection retry interval on failure
Definition at line 49 of file ChannelRetry.h.
TimeDuration opendnp3::ChannelRetry::reconnectDelay |
reconnect delay (defaults to zero)
Definition at line 53 of file ChannelRetry.h.
|
private |
Definition at line 62 of file ChannelRetry.h.
Referenced by NextDelay().