rodbus (C++ API) 1.3.1
Loading...
Searching...
No Matches
rodbus::RetryStrategy Struct Reference

Retry strategy configuration. More...

#include <rodbus.hpp>

Public Member Functions

 RetryStrategy ()
 Initialize a retry strategy to defaults. More...
 

Public Attributes

std::chrono::steady_clock::duration min_delay
 Minimum delay between two retries. More...
 
std::chrono::steady_clock::duration max_delay
 Maximum delay between two retries. More...
 

Friends

class CppRetryStrategyFriend
 

Detailed Description

Retry strategy configuration.

The strategy uses an exponential back-off with a minimum and maximum value.

Constructor & Destructor Documentation

◆ RetryStrategy()

rodbus::RetryStrategy::RetryStrategy ( )

Initialize a retry strategy to defaults.

Note
Values are initialized to:
Returns
New instance of RetryStrategy

Member Data Documentation

◆ max_delay

std::chrono::steady_clock::duration rodbus::RetryStrategy::max_delay

Maximum delay between two retries.

◆ min_delay

std::chrono::steady_clock::duration rodbus::RetryStrategy::min_delay

Minimum delay between two retries.


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