32constexpr auto RECONNECTION_CONFIG_DEFAULT_INITIAL_WAITING_TIME =
33 std::chrono::milliseconds(125);
35constexpr auto RECONNECTION_CONFIG_DEFAULT_MAX_WAITING_TIME =
36 std::chrono::seconds(32);
38constexpr auto RECONNECTION_CONFIG_DEFAULT_MAX_JITTER_WAITING_TIME =
39 RECONNECTION_CONFIG_DEFAULT_INITIAL_WAITING_TIME;
47 RECONNECTION_CONFIG_DEFAULT_MAX_JITTER_WAITING_TIME) {}
50 std::chrono::nanoseconds value) {
51 if (value <= std::chrono::nanoseconds(0)) {
53 "Waiting time must be larger than zero.");
65 std::chrono::nanoseconds value) {
66 if (value <= std::chrono::nanoseconds(0)) {
68 "Waiting time must be larger than zero.");
79 std::chrono::nanoseconds value) {
80 if (value < std::chrono::nanoseconds(0)) {
82 "Jitter must be larger than or equal to zero.");
Class of exceptions in cpp-msgpack-rpc library.
std::chrono::nanoseconds initial_waiting_time() const noexcept
Get the initial waiting time.
std::chrono::nanoseconds max_waiting_time() const noexcept
Get the maximum waiting time.
std::chrono::nanoseconds initial_waiting_time_
Initial waiting time.
std::chrono::nanoseconds max_jitter_waiting_time() const noexcept
Get the maximum jitter of waiting time.
ReconnectionConfig()
Constructor.
std::chrono::nanoseconds max_waiting_time_
Maximum waiting time.
std::chrono::nanoseconds max_jitter_waiting_time_
Maximum jitter of waiting time.
Definition of MsgpackRPCException class.
Namespace of configurations.
Definition of ReconnectionConfig class.
Definition of StatusCode enumeration.