Class FDv1FallbackSynchronizerEntry

java.lang.Object
com.launchdarkly.sdk.android.integrations.FDv1FallbackSynchronizerEntry

public final class FDv1FallbackSynchronizerEntry extends Object
Entry for the FDv1 fallback synchronizer of a connection mode.

The SDK switches a mode to this FDv1 polling synchronizer when LaunchDarkly directs it to fall back to FDv1. It is not one of the mode's synchronizers; set it with ConnectionModeBuilder.fdv1FallbackSynchronizer(FDv1FallbackSynchronizerEntry).

Early access; not stable.

  • Constructor Details

    • FDv1FallbackSynchronizerEntry

      public FDv1FallbackSynchronizerEntry()
  • Method Details

    • pollIntervalMillis

      public FDv1FallbackSynchronizerEntry pollIntervalMillis(int pollIntervalMillis)
      Sets the poll interval of the FDv1 fallback synchronizer. The default and the minimum are LDConfig.DEFAULT_POLL_INTERVAL_MILLIS.
      Parameters:
      pollIntervalMillis - the poll interval in milliseconds
      Returns:
      this entry
    • serviceEndpointsOverride

      public FDv1FallbackSynchronizerEntry serviceEndpointsOverride(@Nullable ServiceEndpoints endpoints)
      Overrides service endpoints for the FDv1 fallback synchronizer, or null to use the SDK's polling endpoint.
      Parameters:
      endpoints - the service endpoints, or null
      Returns:
      this entry
    • serviceEndpointsOverride

      public FDv1FallbackSynchronizerEntry serviceEndpointsOverride(ServiceEndpointsBuilder serviceEndpointsBuilder)
      Overrides service endpoints for the FDv1 fallback synchronizer using a builder.
      Parameters:
      serviceEndpointsBuilder - the service endpoints builder
      Returns:
      this entry
    • getPollIntervalMillis

      public int getPollIntervalMillis()
    • getServiceEndpointsOverride

      @Nullable public ServiceEndpoints getServiceEndpointsOverride()