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 permanently shutting down and will send no more data.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 permanently shutting down and will send no more data.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.The data sources in this SDK do not call this method. They retry after a failure instead, and they wait longer after a failure that is unlikely to correct itself.
-