factories to create DataSystemInitializers, in priority order.
factories to create DataSystemSynchronizers, in priority order.
Optional
_logger: LDLoggerOptional
Optional
_transitionConditions: TransitionConditionsOptional
Optional
_backoff: BackoffOptional
Private
Readonly
_backoffPrivate
_cancelPrivate
_cancellablePrivate
_consumePrivate
_externalPrivate
Optional
_externalPrivate
_initPrivate
_initPrivate
Optional
Readonly
_loggerPrivate
_lookupthe transition condition for the provided data source state or undefined if there is no transition condition
Private
_pickDetermines the next datasource and returns that datasource as well as a closure to cull the datasource from the datasource lists. One example where the cull closure is invoked is if the datasource has an unrecoverable error.
Private
_resetPrivate
_stoppedPrivate
_syncPrivate
Readonly
_transitionPrivate
_wrapThis wrapper will ensure the following:
Don't report DataSourceState.Initializing except as first status callback. Map underlying DataSourceState.Closed to interrupted. Don't report the same status and error twice in a row.
May be called any number of times, if already started, has no effect
that will be called when data arrives, may be called multiple times.
that will be called when data source state changes or an unrecoverable error has been encountered.
Optional
err: anyOptional
Generated using TypeDoc
The CompositeDataSource can combine a number of DataSystemInitializers and DataSystemSynchronizers into a single DataSource, implementing fallback and recovery logic internally to choose where data is sourced from.