50 network_ = std::move(network_name);
56 enable_tcp_keep_alive_ = enable;
62 tcp_keep_alive_interval_ = interval;
68 if (interval < config_poll_floor_) {
69 interval = config_poll_floor_;
71 config_poll_interval_ = interval;
77 idle_http_connection_timeout_ =
timeout;
83 max_http_connections_ = number_of_connections;
89 ip_protocol_ = protocol;
113 server_group_ = std::move(server_group);
133 enable_tcp_keep_alive_,
135 tcp_keep_alive_interval_,
136 config_poll_interval_,
137 idle_http_connection_timeout_,
138 max_http_connections_,
143 std::string network_{
"auto" };
144 std::string server_group_{};
145 bool enable_tcp_keep_alive_{
true };
151 std::optional<std::size_t> max_http_connections_{};
Definition network_options.hxx:30
auto preferred_network(std::string network_name) -> network_options &
Selects network to use.
Definition network_options.hxx:48
auto config_poll_interval(std::chrono::milliseconds interval) -> network_options &
Definition network_options.hxx:66
static constexpr std::chrono::milliseconds default_config_poll_floor
Definition network_options.hxx:35
static constexpr std::chrono::milliseconds default_idle_http_connection_timeout
Definition network_options.hxx:36
auto tcp_keep_alive_interval(std::chrono::milliseconds interval) -> network_options &
Definition network_options.hxx:60
auto build() const -> built
Definition network_options.hxx:128
auto idle_http_connection_timeout(std::chrono::milliseconds timeout) -> network_options &
Definition network_options.hxx:75
auto enable_tcp_keep_alive(bool enable) -> network_options &
Definition network_options.hxx:54
static constexpr std::chrono::milliseconds default_tcp_keep_alive_interval
Definition network_options.hxx:32
auto max_http_connections(std::size_t number_of_connections) -> network_options &
Definition network_options.hxx:81
auto preferred_server_group(std::string server_group) -> network_options &
Select server group to use for replica APIs.
Definition network_options.hxx:111
static constexpr std::chrono::milliseconds default_config_poll_interval
Definition network_options.hxx:34
auto force_ip_protocol(ip_protocol protocol) -> network_options &
Definition network_options.hxx:87
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
ip_protocol
Definition ip_protocol.hxx:22
Definition network_options.hxx:117
std::string network
Definition network_options.hxx:118
std::string server_group
Definition network_options.hxx:119
bool enable_tcp_keep_alive
Definition network_options.hxx:120
couchbase::ip_protocol ip_protocol
Definition network_options.hxx:121
std::chrono::milliseconds config_poll_interval
Definition network_options.hxx:123
std::chrono::milliseconds idle_http_connection_timeout
Definition network_options.hxx:124
std::optional< std::size_t > max_http_connections
Definition network_options.hxx:125
std::chrono::milliseconds tcp_keep_alive_interval
Definition network_options.hxx:122