Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
network_options Class Reference

#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 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 }
 

Member Function Documentation

◆ build()

auto build ( ) const -> built
inlinenodiscard

◆ config_poll_interval()

auto config_poll_interval ( std::chrono::milliseconds interval) -> network_options&
inline

◆ enable_tcp_keep_alive()

auto enable_tcp_keep_alive ( bool enable) -> network_options&
inline

◆ force_ip_protocol()

auto force_ip_protocol ( ip_protocol protocol) -> network_options&
inline

◆ idle_http_connection_timeout()

auto idle_http_connection_timeout ( std::chrono::milliseconds timeout) -> network_options&
inline

◆ max_http_connections()

auto max_http_connections ( std::size_t number_of_connections) -> network_options&
inline

◆ preferred_network()

auto preferred_network ( std::string network_name) -> network_options&
inline

Selects network to use.

Parameters
namenetwork name as it is exposed in the configuration.
Returns
this object for chaining purposes.
See also
https://docs.couchbase.com/server/current/learn/clusters-and-availability/connectivity.html#alternate-addresses
https://docs.couchbase.com/server/current/rest-api/rest-set-up-alternate-address.html

◆ preferred_server_group()

auto preferred_server_group ( std::string server_group) -> network_options&
inline

◆ tcp_keep_alive_interval()

auto tcp_keep_alive_interval ( std::chrono::milliseconds interval) -> network_options&
inline

Member Data Documentation

◆ default_config_poll_floor

std::chrono::milliseconds default_config_poll_floor { 50 }
staticconstexpr

◆ default_config_poll_interval

std::chrono::milliseconds default_config_poll_interval { 2'500 }
staticconstexpr

◆ default_idle_http_connection_timeout

std::chrono::milliseconds default_idle_http_connection_timeout { 4'500 }
staticconstexpr

◆ default_tcp_keep_alive_interval

std::chrono::milliseconds default_tcp_keep_alive_interval
staticconstexpr
Initial value:
{ std::chrono::seconds{
60 } }

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