14 #include <folly/Optional.h> 21 namespace facebook {
namespace logdevice {
23 class ClientSettingsImpl;
95 int set(
const char* name,
const char* value);
98 int set(
const std::string& name,
const std::string& value) {
99 return set(name.c_str(), value.c_str());
103 int set(
const char* name, int64_t value);
110 int set(
const std::vector<std::pair<std::string, std::string>>& settings);
117 folly::Optional<std::string>
get(
const std::string& name);
129 std::vector<std::pair<std::string, std::string>>
getAll();
134 friend class ClientSettingsImpl;
135 ClientSettingsImpl* impl();
static ClientSettings * create()
bool isOverridden(const std::string &name)
Definition: AsyncReader.h:16
Definition: ClientSettings.h:25
std::vector< std::pair< std::string, std::string > > getAll()