BackgroundSyncManager class

Incremental sync manager for background/continuous syncing. Handles priority-based and concurrent sync operations with backoff.

Constructors

BackgroundSyncManager({required Map<String, BackgroundSyncHandler> handlers, Map<String, int>? handlerPriorities, required SyncMetaDataRepo metaRepo, BackoffStrategy? backoffStrategy, int maxRetries = 3, int maxConcurrent = 2, int batchSize = 50, ConflictResolutionStrategy conflictStrategy = ConflictResolutionStrategy.highestVersionWins})

Properties

batchSize int
final
conflictStrategy ConflictResolutionStrategy
final
eventStream Stream<SyncEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
metaRepo SyncMetaDataRepo
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syncAll() → void
Start sync for all features, respecting priority and concurrency.
syncFeature(String featureKey) → void
Start background sync for a specific feature. Respects concurrency limits and priority ordering.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited