C++ Client-Side SDK
LaunchDarkly SDK
Public Types | Public Member Functions | List of all members
launchdarkly::config::shared::builders::DataSourceBuilder< ClientSDK > Class Reference

Public Types

using Streaming = StreamingBuilder< ClientSDK >
 
using Polling = PollingBuilder< ClientSDK >
 

Public Member Functions

DataSourceBuilderWithReasons (bool value)
 
DataSourceBuilderUseReport (bool value)
 
DataSourceBuilderMethod (Streaming stream_builder)
 
DataSourceBuilderMethod (Polling polling_builder)
 
built::DataSourceConfig< ClientSDKBuild () const
 

Member Function Documentation

◆ Build()

Build a data source config. This is used internal to the SDK.

Returns
The built config.

◆ Method() [1/2]

Set the polling configuration for the builder.

A data source may either be streaming or polling. Setting a stream builder indicates the data source will use streaming. Setting a polling builder will indicate the use of polling.

Parameters
polling_builderThe polling builder.
Returns
Reference to this builder.

◆ Method() [2/2]

Set the streaming configuration for the builder.

A data source may either be streaming or polling. Setting a streaming builder indicates the data source will use streaming. Setting a polling builder will indicate the use of polling.

Parameters
stream_builderThe streaming builder.
Returns
Reference to this builder.

◆ UseReport()

Whether to use the REPORT verb to fetch flag settings.

If this is true, flag settings will be fetched with a REPORT request including a JSON entity body with the context object.

Otherwise (by default) a GET request will be issued with the context passed as a base64 URL-encoded path parameter.

Do not use unless advised by LaunchDarkly.

Parameters
valueTrue to use the REPORT verb.
Returns
Reference to this builder.

◆ WithReasons()

Whether LaunchDarkly should provide additional information about how flag values were calculated.

The additional information will then be available through the client's VariationDetail methods. Since this increases the size of network requests, such information is not sent unless you set this option to true.

Parameters
valueTrue to enable reasons.
Returns
Reference to this builder.

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