SyncPhase enum
The high-level phase of a sync round-trip.
The transitions are:
starting
→ pushing
→ retrying (back to pushing)
→ pulling
→ applying
→ retrying (back to applying)
→ done | error
done and error are terminal — the next
syncAsync call starts a new round-trip from
starting.
Values
- starting → const SyncPhase
-
The queue is being read (either from the in-memory cache or the persistent SyncQueueStore). One event, then transition to
pushing. - pushing → const SyncPhase
-
Local changes are being sent to the SyncProvider.
processedis the number of local changes pushed so far;totalis the total number to push. - pulling → const SyncPhase
-
The remote envelope is being received.
processedis the number of remote changes received so far;totalis usuallynull(we don't know the count until the response is fully received). - applying → const SyncPhase
-
Remote changes are being applied to the local DB.
processedis the number applied so far;totalis the number to apply (the size of the remote envelope). - retrying → const SyncPhase
-
Between retry attempts.
processedis the attempt count,totalis the max-attempts from the RetryPolicy. The next event is back topushingorapplying. - done → const SyncPhase
-
Terminal: the sync succeeded.
processed==total(always). - error → const SyncPhase
-
Terminal: the sync failed. The error and
stackTracefields of SyncProgress are set.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited