cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of builders of clients. More...
#include <msgpack_rpc/clients/client_builder.h>
Public Member Functions | |
ClientBuilder () | |
Constructor. | |
ClientBuilder (config::ClientConfig client_config, const std::shared_ptr< logging::Logger > &logger=logging::Logger::create()) | |
Constructor. | |
ClientBuilder (const std::shared_ptr< logging::Logger > &logger) | |
Constructor. | |
Client | build () |
Build a client. | |
ClientBuilder & | connect_to (addresses::URI uri) |
Add a URI to connect to. | |
ClientBuilder & | connect_to (std::string_view uri) |
Add a URI to connect to. | |
ClientBuilder & | connect_to_tcp (std::string_view host, std::uint16_t port_number) |
Add a TCP address to connect to. |
Private Attributes | |
std::unique_ptr< impl::IClientBuilderImpl > | impl_ |
Object of the internal implementation. |
Class of builders of clients.
Definition at line 40 of file client_builder.h.
|
inline |
Constructor.
This overload will use the default configurations for clients and loggers.
Definition at line 48 of file client_builder.h.
|
inlineexplicit |
Constructor.
[in] | logger | Logger. |
This overload will use the default configurations for clients.
Definition at line 57 of file client_builder.h.
|
inlineexplicit |
Constructor.
[in] | client_config | Configuration of the client. |
[in] | logger | Logger. |
Definition at line 66 of file client_builder.h.
|
inlinenodiscard |
Build a client.
Definition at line 111 of file client_builder.h.
|
inline |
Add a URI to connect to.
[in] | uri | URI. |
Definition at line 78 of file client_builder.h.
|
inline |
Add a URI to connect to.
[in] | uri | URI. |
Definition at line 89 of file client_builder.h.
|
inline |
Add a TCP address to connect to.
[in] | host | Host name. |
[in] | port_number | Port number. |
Definition at line 100 of file client_builder.h.
|
private |
Object of the internal implementation.
Definition at line 115 of file client_builder.h.