35constexpr auto CLIENT_CONFIG_CALL_TIMEOUT = std::chrono::seconds(15);
42 uris_.push_back(std::move(uri));
55 if (value <= std::chrono::nanoseconds(0)) {
57 "Duration of timeout must be longer than zero.");
Class of URIs (Uniform Resource Identifiers) to specify endpoints in this library.
static URI parse(std::string_view uri_string)
Parse a string to create a URI.
Class of exceptions in cpp-msgpack-rpc library.
ReconnectionConfig & reconnection() noexcept
Get the configuration of reconnection.
std::vector< addresses::URI > uris_
URIs.
ExecutorConfig & executor() noexcept
Get the configuration of executors.
ExecutorConfig executor_
Configuration of executors.
ClientConfig()
Constructor.
ReconnectionConfig reconnection_
Configuration of reconnection.
const std::vector< addresses::URI > & uris() const noexcept
Get the URIs of the server.
MessageParserConfig message_parser_
Configuration of parsers of messages.
std::chrono::nanoseconds call_timeout() const noexcept
Get the duration of timeout of RPCs.
std::chrono::nanoseconds call_timeout_
Duration of timeout of RPCs.
MessageParserConfig & message_parser() noexcept
Get the configuration of parsers of messages.
ClientConfig & add_uri(addresses::URI uri)
Add a URI of the server.
Class of configuration of executors.
Class of configuration of parsers of messages.
Class of configurations of reconnection.
Definition of ClientConfig class.
Definition of MsgpackRPCException class.
Namespace of configurations.
Definition of StatusCode enumeration.