C++ Server-Side SDK
LaunchDarkly SDK
|
#include <data_source_builder.hpp>
Public Member Functions | |
PollingBuilder & | PollInterval (std::chrono::seconds poll_interval) |
template<typename T = SDK> | |
std::enable_if_t< is_server_sdk< T >::value, PollingBuilder & > | Filter (std::string filter_key) |
built::PollingConfig< SDK > | Build () const |
Contains methods for configuring the polling data source.
built::PollingConfig< SDK > launchdarkly::config::shared::builders::PollingBuilder< SDK >::Build |
Build the polling config. Used internal to the SDK.
|
inline |
Sets the filter key for the polling connection.
By default, the SDK is able to evaluate all flags in an environment.
If this is undesirable - for example, because the environment contains thousands of flags, but this application only needs to evaluate a smaller, known subset - then a filter may be setup in LaunchDarkly, and the filter's key specified here.
Evaluations for flags that aren't part of the filtered environment will return default values.
filter_key | The filter key. If the key is malformed or nonexistent, then a full LaunchDarkly environment will be fetched. In the case of a malformed key, the SDK will additionally log a runtime error. |
PollingBuilder< SDK > & launchdarkly::config::shared::builders::PollingBuilder< SDK >::PollInterval | ( | std::chrono::seconds | poll_interval | ) |
Sets the interval at which the SDK will poll for feature flag updates.
poll_interval | The polling interval. |