Interface DataSourceUpdateSinkV2
- All Superinterfaces:
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 TypeMethodDescriptionvoidsetStatus(DataSourceState state, Throwable failure) Informs the SDK of a change in the data source's status.voidshutDown()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
Informs the SDK of a change in the data source's status.- Parameters:
state- the data source statefailure- 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.
-