C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
launchdarkly::server_side::config::builders::DataSystemBuilder Class Reference

Public Types

using BackgroundSync = BackgroundSyncBuilder
 
using LazyLoad = LazyLoadBuilder
 

Public Member Functions

DataSystemBuilderDisable ()
 Alias for Enabled(false).
 
DataSystemBuilderEnabled (bool enabled)
 Specifies if the data system is enabled or disabled. If disabled, the configured method won't be used. Defaults to true.
 
DataSystemBuilderMethod (BackgroundSync bg_sync)
 Configures the Background Sync data system. In this system, the SDK periodically receives updates from LaunchDarkly servers and stores them in an in-memory cache. This is the default data system.
 
DataSystemBuilderMethod (LazyLoad lazy_load)
 Configures the Lazy Load data system. In this system, the SDK pulls data on demand from a configured source, caching responses in memory for a configurable duration.
 
tl::expected< built::DataSystemConfig, Error > Build () const
 

Member Function Documentation

◆ Disable()

DataSystemBuilder & launchdarkly::server_side::config::builders::DataSystemBuilder::Disable ( )

Alias for Enabled(false).

Returns
Reference to this.

◆ Enabled()

DataSystemBuilder & launchdarkly::server_side::config::builders::DataSystemBuilder::Enabled ( bool  enabled)

Specifies if the data system is enabled or disabled. If disabled, the configured method won't be used. Defaults to true.

Parameters
enabledIf the data system is enabled.
Returns
Reference to this.

◆ Method() [1/2]

DataSystemBuilder & launchdarkly::server_side::config::builders::DataSystemBuilder::Method ( BackgroundSync  bg_sync)

Configures the Background Sync data system. In this system, the SDK periodically receives updates from LaunchDarkly servers and stores them in an in-memory cache. This is the default data system.

Parameters
bg_syncBackground Sync configuration.
Returns
Reference to this.

◆ Method() [2/2]

DataSystemBuilder & launchdarkly::server_side::config::builders::DataSystemBuilder::Method ( LazyLoad  lazy_load)

Configures the Lazy Load data system. In this system, the SDK pulls data on demand from a configured source, caching responses in memory for a configurable duration.

Parameters
lazy_loadLazy Load configuration.
Returns
Reference to this.

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