Interface TransactionalDataSourceUpdateSink

All Known Subinterfaces:
DataSourceUpdateSinkV2

public interface TransactionalDataSourceUpdateSink
Interface that an implementation of DataSource will use to push data into the SDK transactionally.

The data source interacts with this object, rather than manipulating the store directly, so that the SDK can perform any other necessary operations that must happen when data is updated.

Component factories for DataSource implementations receive a sink that implements this interface (and DataSourceUpdateSink) via ClientContext.getDataSourceUpdateSink().

See Also:
  • Method Details

    • apply

      void apply(@NonNull LDContext context, @NonNull ChangeSet<Map<String,DataModel.Flag>> changeSet)
      Apply the given change set to the store. This should be done atomically if possible. The context is the one used by the data source to obtain the changeset; the store will not modify data if that context is no longer the active context.
      Parameters:
      context - the context that was used to get the changeset (must still be active for apply to succeed)
      changeSet - the changeset to apply