Apollo C++ Client
C++ client for Apollo Configuration Center
Loading...
Searching...
No Matches
apollo::client::Opts Struct Reference

Options for configuring the Apollo client. More...

#include <apollo_types.h>

Public Attributes

std::string cluster_name_ = "default"
std::string label_ = ""
std::vector< NamespaceTypenamespaces_ = {"application"}
int connection_timeout_ms_ = 500
int request_read_timeout_ms_ = 120000
int request_write_timeout_ms_ = 3000

Detailed Description

Options for configuring the Apollo client.

Note
Please ensure that the request_read_timeout_ms_ to the server is greater than 60 seconds for long polling to work correctly.

Member Data Documentation

◆ cluster_name_

std::string apollo::client::Opts::cluster_name_ = "default"

The cluster name

◆ connection_timeout_ms_

int apollo::client::Opts::connection_timeout_ms_ = 500

The timeout for establishing a connection in milliseconds

◆ label_

std::string apollo::client::Opts::label_ = ""

The label for the configuration

◆ namespaces_

std::vector<NamespaceType> apollo::client::Opts::namespaces_ = {"application"}

The namespaces to subscribe to

◆ request_read_timeout_ms_

int apollo::client::Opts::request_read_timeout_ms_ = 120000

The timeout for read HTTP response in milliseconds

◆ request_write_timeout_ms_

int apollo::client::Opts::request_write_timeout_ms_ = 3000

The timeout for sent HTTP request in milliseconds


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