cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::config::ReconnectionConfig Class Reference

Class of configurations of reconnection. More...

#include <msgpack_rpc/config/reconnection_config.h>

Collaboration diagram for msgpack_rpc::config::ReconnectionConfig:

Public Member Functions

 ReconnectionConfig ()
 Constructor.
std::chrono::nanoseconds initial_waiting_time () const noexcept
 Get the initial waiting time.
ReconnectionConfiginitial_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.
ReconnectionConfigmax_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.
ReconnectionConfigmax_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.

Detailed Description

Class of configurations of reconnection.

Definition at line 31 of file reconnection_config.h.

Constructor & Destructor Documentation

◆ ReconnectionConfig()

msgpack_rpc::config::ReconnectionConfig::ReconnectionConfig ( )

Constructor.

Definition at line 43 of file reconnection_config.cpp.

Member Function Documentation

◆ initial_waiting_time() [1/2]

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::initial_waiting_time ( ) const
nodiscardnoexcept

Get the initial waiting time.

Returns
Value.

Definition at line 59 of file reconnection_config.cpp.

◆ initial_waiting_time() [2/2]

ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::initial_waiting_time ( std::chrono::nanoseconds value)

Set the initial waiting time.

Parameters
[in]valueValue.
Returns
This.

Definition at line 49 of file reconnection_config.cpp.

◆ max_jitter_waiting_time() [1/2]

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::max_jitter_waiting_time ( ) const
nodiscardnoexcept

Get the maximum jitter of waiting time.

Returns
Value.

Definition at line 88 of file reconnection_config.cpp.

◆ max_jitter_waiting_time() [2/2]

ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::max_jitter_waiting_time ( std::chrono::nanoseconds value)

Set the maximum jitter of waiting time.

Parameters
[in]valueValue.
Returns
This.

Definition at line 78 of file reconnection_config.cpp.

◆ max_waiting_time() [1/2]

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::max_waiting_time ( ) const
nodiscardnoexcept

Get the maximum waiting time.

Returns
Value.

Definition at line 74 of file reconnection_config.cpp.

◆ max_waiting_time() [2/2]

ReconnectionConfig & msgpack_rpc::config::ReconnectionConfig::max_waiting_time ( std::chrono::nanoseconds value)

Set the maximum waiting time.

Parameters
[in]valueValue.
Returns
This.

Definition at line 64 of file reconnection_config.cpp.

Member Data Documentation

◆ initial_waiting_time_

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::initial_waiting_time_
private

Initial waiting time.

Definition at line 87 of file reconnection_config.h.

◆ max_jitter_waiting_time_

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::max_jitter_waiting_time_
private

Maximum jitter of waiting time.

Definition at line 93 of file reconnection_config.h.

◆ max_waiting_time_

std::chrono::nanoseconds msgpack_rpc::config::ReconnectionConfig::max_waiting_time_
private

Maximum waiting time.

Definition at line 90 of file reconnection_config.h.


The documentation for this class was generated from the following files: