cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of configuration of clients. More...
#include <msgpack_rpc/config/client_config.h>
Public Member Functions | |
ClientConfig () | |
Constructor. | |
ClientConfig & | add_uri (addresses::URI uri) |
Add a URI of the server. | |
ClientConfig & | add_uri (std::string_view uri) |
Add a URI of the server. | |
std::chrono::nanoseconds | call_timeout () const noexcept |
Get the duration of timeout of RPCs. | |
ClientConfig & | call_timeout (std::chrono::nanoseconds value) |
Set the duration of timeout of RPCs. | |
const ExecutorConfig & | executor () const noexcept |
Get the configuration of executors. | |
ExecutorConfig & | executor () noexcept |
Get the configuration of executors. | |
const MessageParserConfig & | message_parser () const noexcept |
Get the configuration of parsers of messages. | |
MessageParserConfig & | message_parser () noexcept |
Get the configuration of parsers of messages. | |
const ReconnectionConfig & | reconnection () const noexcept |
Get the configuration of reconnection. | |
ReconnectionConfig & | reconnection () noexcept |
Get the configuration of reconnection. | |
const std::vector< addresses::URI > & | uris () const noexcept |
Get the URIs of the server. |
Private Attributes | |
std::chrono::nanoseconds | call_timeout_ |
Duration of timeout of RPCs. | |
ExecutorConfig | executor_ |
Configuration of executors. | |
MessageParserConfig | message_parser_ |
Configuration of parsers of messages. | |
ReconnectionConfig | reconnection_ |
Configuration of reconnection. | |
std::vector< addresses::URI > | uris_ |
URIs. |
Class of configuration of clients.
Definition at line 38 of file client_config.h.
msgpack_rpc::config::ClientConfig::ClientConfig | ( | ) |
Constructor.
Definition at line 39 of file client_config.cpp.
ClientConfig & msgpack_rpc::config::ClientConfig::add_uri | ( | addresses::URI | uri | ) |
Add a URI of the server.
[in] | uri | URI. |
Definition at line 41 of file client_config.cpp.
ClientConfig & msgpack_rpc::config::ClientConfig::add_uri | ( | std::string_view | uri | ) |
Add a URI of the server.
[in] | uri | URI. |
Definition at line 46 of file client_config.cpp.
|
nodiscardnoexcept |
Get the duration of timeout of RPCs.
Definition at line 63 of file client_config.cpp.
ClientConfig & msgpack_rpc::config::ClientConfig::call_timeout | ( | std::chrono::nanoseconds | value | ) |
Set the duration of timeout of RPCs.
[in] | value | Value. |
Definition at line 54 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of executors.
Definition at line 77 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of executors.
Definition at line 75 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of parsers of messages.
Definition at line 71 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of parsers of messages.
Definition at line 67 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of reconnection.
Definition at line 85 of file client_config.cpp.
|
nodiscardnoexcept |
Get the configuration of reconnection.
Definition at line 81 of file client_config.cpp.
|
nodiscardnoexcept |
|
private |
Duration of timeout of RPCs.
Definition at line 133 of file client_config.h.
|
private |
Configuration of executors.
Definition at line 139 of file client_config.h.
|
private |
Configuration of parsers of messages.
Definition at line 136 of file client_config.h.
|
private |
Configuration of reconnection.
Definition at line 142 of file client_config.h.
|
private |
URIs.
Definition at line 130 of file client_config.h.