|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
#include <couchbase/network_options.hxx>
Classes | |
| struct | built |
Public Member Functions | |
| auto | preferred_network (std::string network_name) -> network_options & |
| Selects network to use. | |
| auto | enable_tcp_keep_alive (bool enable) -> network_options & |
| auto | tcp_keep_alive_interval (std::chrono::milliseconds interval) -> network_options & |
| auto | config_poll_interval (std::chrono::milliseconds interval) -> network_options & |
| auto | idle_http_connection_timeout (std::chrono::milliseconds timeout) -> network_options & |
| auto | max_http_connections (std::size_t number_of_connections) -> network_options & |
| auto | force_ip_protocol (ip_protocol protocol) -> network_options & |
| auto | preferred_server_group (std::string server_group) -> network_options & |
| Select server group to use for replica APIs. | |
| auto | enable_lazy_connections (bool enable) -> network_options & |
| Enables or disables lazy connection of data endpoints. | |
| auto | build () const -> built |
Static Public Attributes | |
| static constexpr std::chrono::milliseconds | default_tcp_keep_alive_interval |
| static constexpr std::chrono::milliseconds | default_config_poll_interval { 2'500 } |
| static constexpr std::chrono::milliseconds | default_config_poll_floor { 50 } |
| static constexpr std::chrono::milliseconds | default_idle_http_connection_timeout { 4'500 } |
|
inlinenodiscard |
|
inline |
|
inline |
Enables or disables lazy connection of data endpoints.
When enabled, connections are established only when the first operation for a given endpoint is scheduled, rather than at cluster object construction time.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Selects network to use.
| network_name | network name as it is exposed in the configuration. |
|
inline |
Select server group to use for replica APIs.
For some use-cases it might be necessary to restrict list of the nodes, that are used in replica read APIs to single server group to optimize network costs.
|
inline |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |