SlowSyncManager
internal class SlowSyncManager(slowSyncCriteriaProvider: SlowSyncCriteriaProvider, slowSyncRepository: SlowSyncRepository, slowSyncWorker: SlowSyncWorker, slowSyncRecoveryHandler: SlowSyncRecoveryHandler, networkStateObserver: <Error class: unknown class>, syncMigrationStepsProvider: () -> SyncMigrationStepsProvider, logger: <Error class: unknown class> = kaliumLogger, kaliumDispatcher: <Error class: unknown class> = KaliumDispatcherImpl, exponentialDurationHelper: ExponentialDurationHelper = ExponentialDurationHelperImpl(
MIN_RETRY_DELAY,
MAX_RETRY_DELAY
))
Starts and stops SlowSync based on a set of criteria, defined in SlowSyncCriteriaProvider. Once the criteria are met, this Manager will take care of running SlowSync.
Ideally, SlowSync should run only once after the initial log-in / client registration. But IncrementalSyncManager might invalidate this and request a new SlowSync in case some Event is lost.
See also
Constructors
Link copied to clipboard
constructor(slowSyncCriteriaProvider: SlowSyncCriteriaProvider, slowSyncRepository: SlowSyncRepository, slowSyncWorker: SlowSyncWorker, slowSyncRecoveryHandler: SlowSyncRecoveryHandler, networkStateObserver: <Error class: unknown class>, syncMigrationStepsProvider: () -> SyncMigrationStepsProvider, logger: <Error class: unknown class> = kaliumLogger, kaliumDispatcher: <Error class: unknown class> = KaliumDispatcherImpl, exponentialDurationHelper: ExponentialDurationHelper = ExponentialDurationHelperImpl(
MIN_RETRY_DELAY,
MAX_RETRY_DELAY
))