OutboxMutation class
A single queued offline mutation waiting to be dispatched.
Constructors
Properties
- action → String
-
The action name (e.g. 'UpdateBio', 'CreatePost').
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable idempotency key. Send this with every retry to a supporting server.
final
- lastAttemptedAt ↔ DateTime?
-
Timestamp of the last dispatch attempt.
getter/setter pair
- lastError ↔ Object?
-
The last error caught during dispatch.
getter/setter pair
- maxRetries → int
-
Maximum retry attempts before moving to dead-letter queue.
final
- nextRetryAfter ↔ DateTime?
-
Earliest timestamp at which this mutation is eligible to be retried.
getter/setter pair
-
payload
→ Map<
String, dynamic> -
The mutation payload.
final
- retryCount ↔ int
-
Number of failed dispatch attempts.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenantId → String
-
The tenant that owns this mutation.
final
Methods
-
isEligibleForRetry(
[DateTime? now]) → bool - Whether this mutation has waited out its backoff duration and is ready to be dispatched again.
-
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