40 network_ = network_name;
46 enable_tcp_keep_alive_ = enable;
52 tcp_keep_alive_interval_ = interval;
58 if (interval < config_poll_floor_) {
59 interval = config_poll_floor_;
61 config_poll_interval_ = interval;
67 idle_http_connection_timeout_ =
timeout;
73 max_http_connections_ = number_of_connections;
79 ip_protocol_ = protocol;
103 server_group_ = std::move(server_group);
123 enable_tcp_keep_alive_,
125 tcp_keep_alive_interval_,
126 config_poll_interval_,
127 idle_http_connection_timeout_,
128 max_http_connections_,
133 std::string network_{
"auto" };
134 std::string server_group_{};
135 bool enable_tcp_keep_alive_{
true };
141 std::optional<std::size_t> max_http_connections_{};
Definition network_options.hxx:30
auto preferred_network(std::string network_name) -> network_options &
Definition network_options.hxx:38
auto config_poll_interval(std::chrono::milliseconds interval) -> network_options &
Definition network_options.hxx:56
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:50
auto build() const -> built
Definition network_options.hxx:118
auto idle_http_connection_timeout(std::chrono::milliseconds timeout) -> network_options &
Definition network_options.hxx:65
auto enable_tcp_keep_alive(bool enable) -> network_options &
Definition network_options.hxx:44
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:71
auto preferred_server_group(std::string server_group) -> network_options &
Select server group to use for replica APIs.
Definition network_options.hxx:101
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:77
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:107
std::string network
Definition network_options.hxx:108
std::string server_group
Definition network_options.hxx:109
bool enable_tcp_keep_alive
Definition network_options.hxx:110
couchbase::ip_protocol ip_protocol
Definition network_options.hxx:111
std::chrono::milliseconds config_poll_interval
Definition network_options.hxx:113
std::chrono::milliseconds idle_http_connection_timeout
Definition network_options.hxx:114
std::optional< std::size_t > max_http_connections
Definition network_options.hxx:115
std::chrono::milliseconds tcp_keep_alive_interval
Definition network_options.hxx:112