Interface DataSourceUpdateSinkV2

All Superinterfaces:
TransactionalDataSourceUpdateSink

public interface DataSourceUpdateSinkV2 extends TransactionalDataSourceUpdateSink
Interface that an FDv2 DataSource will use to push data into the SDK.

This interface extends TransactionalDataSourceUpdateSink to add status tracking and status update capabilities required for FDv2 data sources.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Informs the SDK of a change in the data source's status.
    void
    Informs the SDK that the data source is being permanently shut down due to an unrecoverable problem reported by LaunchDarkly, such as the mobile key being invalid.

    Methods inherited from interface com.launchdarkly.sdk.android.subsystems.TransactionalDataSourceUpdateSink

    apply
  • Method Details

    • setStatus

      void setStatus(@NonNull DataSourceState state, @Nullable Throwable failure)
      Informs the SDK of a change in the data source's status.
      Parameters:
      state - the data source state
      failure - if non-null, represents an error/exception that caused the status change
    • shutDown

      void shutDown()
      Informs the SDK that the data source is being permanently shut down due to an unrecoverable problem reported by LaunchDarkly, such as the mobile key being invalid.

      This implies that the SDK should also stop other components that communicate with LaunchDarkly, such as the event processor. It also changes the connection mode to ConnectionInformation.ConnectionMode.SHUTDOWN.