DatumSyncExecutionStrategy class abstract

Defines the execution strategy for processing the sync queue.

Implementers

Constructors

DatumSyncExecutionStrategy.parallel({int batchSize})
A strategy that processes pending operations in parallel batches.
const
factory
DatumSyncExecutionStrategy.sequential()
A strategy that processes pending operations one by one.
const
factory

Properties

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

Methods

execute<T extends DatumEntityInterface>(List<DatumSyncOperation<T>> operations, Future<void> processOperation(DatumSyncOperation<T> operation), bool isCancelled(), void onProgress(int completed, int total), {DatumLogger? logger}) Future<void>
A strategy that runs the sync process in a background isolate to avoid blocking the UI thread.
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