rodbus (C++ API) 1.3.1
|
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 |
Retry strategy configuration.
The strategy uses an exponential back-off with a minimum and maximum value.
rodbus::RetryStrategy::RetryStrategy | ( | ) |
Initialize a retry strategy to defaults.
std::chrono::steady_clock::duration rodbus::RetryStrategy::max_delay |
Maximum delay between two retries.
std::chrono::steady_clock::duration rodbus::RetryStrategy::min_delay |
Minimum delay between two retries.