RetryExecutor class
Manages retry logic for sync queue operations with exponential backoff.
The RetryExecutor polls the sync_queue table for due tasks and manages retry scheduling with exponential backoff and jitter.
This implements the background sync component from the technical specification.
Constructors
- RetryExecutor(GeneratedDatabase _db, RequestQueueManager _queueManager)
- Creates a new RetryExecutor.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processDueTasksNow(
{bool forceSync = false}) → Future< void> - Manually triggers processing of due tasks.
-
setBackgroundMode(
bool backgroundMode) → void - Switches between foreground and background polling modes.
-
start(
{bool backgroundMode = false}) → void - Starts the retry executor polling.
-
stop(
) → Future< void> - Stops the retry executor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited