SyncExecutor class

Common pagination and batch execution logic shared across sync managers.

  • handles only the orchestration of paginated sync operations with retry logic.
  • extensible through function parameters.

Constructors

SyncExecutor({required RetryPolicy retryPolicy})

Properties

hashCode int
The hash code for this object.
no setterinherited
retryPolicy RetryPolicy
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

executePaginatedSync({required Future<SyncBatchResult> fetchBatch(SyncCheckpoint? checkpoint), required Future<ApplyResult> applyBatch(List<SyncPayload<ServerItem>>), required String featureKey, void onBatchComplete(SyncCheckpoint? checkpoint)?, bool isCancelled()?, SyncCheckpoint? initialCheckpoint}) Future<void>
Execute paginated sync with checkpoint-based pagination (for background sync).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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