Class DataSystemComponents

java.lang.Object
com.launchdarkly.sdk.android.DataSystemComponents

public abstract class DataSystemComponents extends Object
Factory methods for FDv2 data source components used with the DataSystemBuilder.

This class is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode

Most factory methods return a declarative InitializerEntry or SynchronizerEntry. Configure properties on the entry, then pass it to ConnectionModeBuilder.initializers(com.launchdarkly.sdk.android.integrations.InitializerEntry[]) or ConnectionModeBuilder.synchronizers(com.launchdarkly.sdk.android.integrations.SynchronizerEntry[]).

Example:


     LDConfig config = new LDConfig.Builder(AutoEnvAttributes.Enabled)
         .mobileKey("my-key")
         .dataSystem(
             Components.dataSystem()
                 .customizeConnectionMode(ConnectionMode.STREAMING,
                     DataSystemComponents.customMode()
                         .initializers(DataSystemComponents.pollingInitializer())
                         .synchronizers(
                             DataSystemComponents.streamingSynchronizer()
                                 .initialReconnectDelayMillis(500),
                             DataSystemComponents.pollingSynchronizer()
                                 .pollIntervalMillis(300_000))))
         .build();
 
See Also: