Outbox class

A simple, durable outbox backed by the filesystem.

  • Each event is stored as a sanitized JSON file named <id>.json
  • pending() lists and parses events in chronological order
  • ack(id) deletes the corresponding file upon successful delivery

Constructors

Outbox()

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

ack(String id) Future<void>
Acknowledges successful delivery by deleting the stored file.
enqueue(ReportEvent event) Future<void>
Enqueue a sanitized event for later delivery.
flushWith(Reporter pipeline) Future<void>
Flushes pending events using the given reporter pipeline.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pending() Future<List<ReportEvent>>
Returns all pending events in chronological order (by filename/ID).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited