C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
launchdarkly::server_side::data_interfaces::IBootstrapper Class Referenceabstract

#include <ibootstrapper.hpp>

Classes

class  Error
 

Public Member Functions

virtual tl::expected< data_model::SDKDataSet, ErrorFetchAll (std::chrono::milliseconds timeout_hint)=0
 
virtual std::string const & Identity () const =0
 
 IBootstrapper (IBootstrapper const &item)=delete
 
 IBootstrapper (IBootstrapper &&item)=delete
 
IBootstrapperoperator= (IBootstrapper const &)=delete
 
IBootstrapperoperator= (IBootstrapper &&)=delete
 

Detailed Description

Defines a component that can fetch a complete dataset for use in a Data System. Bootstrapping takes place when the SDK starts, and is responsible for provisioning the initial data that an SDK uses before it can begin the on-going synchronization process.

Member Function Documentation

◆ FetchAll()

virtual tl::expected< data_model::SDKDataSet, Error > launchdarkly::server_side::data_interfaces::IBootstrapper::FetchAll ( std::chrono::milliseconds  timeout_hint)
pure virtual

Fetch a complete dataset. This method must invokable multiple times.

Parameters
timeout_hintamount of time to spend fetching data. If the time limit is reached, return Error::Timeout.
Returns
A complete SDKDataSet on success, or an error indicating why it couldn't be retrieved.

◆ Identity()

virtual std::string const & launchdarkly::server_side::data_interfaces::IBootstrapper::Identity ( ) const
pure virtual
Returns
A display-suitable name of the bootstrapper.

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