C++ Client-Side SDK
LaunchDarkly SDK
|
Public Member Functions | |
FlagUpdater (FlagStore &flag_store) | |
void | Init (Context const &context, std::unordered_map< std::string, ItemDescriptor > data) override |
void | Upsert (Context const &context, std::string key, ItemDescriptor item) override |
std::unique_ptr< IConnection > | OnFlagChange (std::string const &key, std::function< void(std::shared_ptr< FlagValueChangeEvent >)> handler) override |
Public Member Functions inherited from launchdarkly::client_side::IDataSourceUpdateSink | |
IDataSourceUpdateSink (IDataSourceUpdateSink const &item)=delete | |
IDataSourceUpdateSink (IDataSourceUpdateSink &&item)=delete | |
IDataSourceUpdateSink & | operator= (IDataSourceUpdateSink const &)=delete |
IDataSourceUpdateSink & | operator= (IDataSourceUpdateSink &&)=delete |
Public Member Functions inherited from launchdarkly::client_side::flag_manager::IFlagNotifier | |
virtual std::unique_ptr< IConnection > | OnFlagChange (std::string const &key, ChangeHandler handler)=0 |
IFlagNotifier (IFlagNotifier const &item)=delete | |
IFlagNotifier (IFlagNotifier &&item)=delete | |
IFlagNotifier & | operator= (IFlagNotifier const &)=delete |
IFlagNotifier & | operator= (IFlagNotifier &&)=delete |
Additional Inherited Members | |
Public Types inherited from launchdarkly::client_side::flag_manager::IFlagNotifier | |
using | ChangeHandler = std::function< void(std::shared_ptr< FlagValueChangeEvent >)> |
|
override |
Listen for changes for the specific flag.
key | The flag to listen to. |
handler | The handler to signal when the flag changes. |