OpStatus enum
Durable lifecycle of an Operation.
"Retrying" is not a separate state: it is pending with a future
nextAttemptAt. "Running" is inFlight, which after a crash means
"may or may not have reached the server".
Values
- pending → const OpStatus
-
Waiting to be sent (possibly after a backoff delay).
- inFlight → const OpStatus
-
Marked (write-ahead) before being handed to the sender.
- conflicted → const OpStatus
-
The server reported a conflict and the resolver parked it for the app.
- failed → const OpStatus
-
Permanently rejected by the server (e.g. 4xx validation). Kept until the app edits, retries or discards it.
- deadLetter → const OpStatus
-
Retries exhausted, or the op cannot be processed (unknown kind, idempotency mismatch). Kept for inspection.
- succeeded → const OpStatus
-
Acknowledged by the server. Usually removed right away.
- cancelled → const OpStatus
-
Cancelled by the app before it was ever sent.
Properties
- blocksEntity → bool
-
Ops in these states block later ops of the same entity.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isFolded → bool
-
Ops in these states still describe user intent and are folded into reads.
no setter
- isTerminal → bool
-
No further automatic processing will happen.
no setter
- 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