cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of configurations of reconnection. More...
#include <msgpack_rpc/config/reconnection_config.h>
Public Member Functions | |
ReconnectionConfig () | |
Constructor. | |
std::chrono::nanoseconds | initial_waiting_time () const noexcept |
Get the initial waiting time. | |
ReconnectionConfig & | initial_waiting_time (std::chrono::nanoseconds value) |
Set the initial waiting time. | |
std::chrono::nanoseconds | max_jitter_waiting_time () const noexcept |
Get the maximum jitter of waiting time. | |
ReconnectionConfig & | max_jitter_waiting_time (std::chrono::nanoseconds value) |
Set the maximum jitter of waiting time. | |
std::chrono::nanoseconds | max_waiting_time () const noexcept |
Get the maximum waiting time. | |
ReconnectionConfig & | max_waiting_time (std::chrono::nanoseconds value) |
Set the maximum waiting time. |
Private Attributes | |
std::chrono::nanoseconds | initial_waiting_time_ |
Initial waiting time. | |
std::chrono::nanoseconds | max_jitter_waiting_time_ |
Maximum jitter of waiting time. | |
std::chrono::nanoseconds | max_waiting_time_ |
Maximum waiting time. |
Class of configurations of reconnection.
Definition at line 31 of file reconnection_config.h.
msgpack_rpc::config::ReconnectionConfig::ReconnectionConfig | ( | ) |
Constructor.
Definition at line 43 of file reconnection_config.cpp.
|
nodiscardnoexcept |
ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::initial_waiting_time | ( | std::chrono::nanoseconds | value | ) |
Set the initial waiting time.
[in] | value | Value. |
Definition at line 49 of file reconnection_config.cpp.
|
nodiscardnoexcept |
Get the maximum jitter of waiting time.
Definition at line 88 of file reconnection_config.cpp.
ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::max_jitter_waiting_time | ( | std::chrono::nanoseconds | value | ) |
Set the maximum jitter of waiting time.
[in] | value | Value. |
Definition at line 78 of file reconnection_config.cpp.
|
nodiscardnoexcept |
ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::max_waiting_time | ( | std::chrono::nanoseconds | value | ) |
Set the maximum waiting time.
[in] | value | Value. |
Definition at line 64 of file reconnection_config.cpp.
|
private |
Initial waiting time.
Definition at line 87 of file reconnection_config.h.
|
private |
Maximum jitter of waiting time.
Definition at line 93 of file reconnection_config.h.
|
private |
Maximum waiting time.
Definition at line 90 of file reconnection_config.h.