ParkedState

One service's entry of one parked aggregate, as its ledger last published it: the ops view, whose snapshot is the read model an operator queries. While parked, it is the entry's ParkedEntry; once resolved, status is ParkedStatus.RESOLVED with the outcome. requested is the last action an operator asked of the owning service (retry, skip, mark-recoverable or apply-retry-spec), until the service publishes the entry again. refusedAction, refusalCode and refusalReason say why the service refused the last request, until the next request or the entry's resolution. errorType is what reason says failed, which an operator groups the entries by.

Its times are epoch milliseconds, declared so (@QueryTemporal): a query counts the entries by day or hour of them.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The type of the failure reason records: what it names before its first ": ", the exception's class as the runtime parks an aggregate with it (<class>: <message>), the whole reason when it names none; SKIP_ONLY for an entry that is skipOnly, whose reason says why its source no longer holds it and names no failure.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The error code of that refusal, such as wow.auth.forbidden.

Link copied to clipboard

Why the owning service refused it.

Link copied to clipboard

The ledger's system command the owning service refused (wow.ledger.RetryParked, ...), or null.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the owning service no longer parks the entry.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the source no longer holds what the entry is parked from: it is never retried, only skipped.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun holds(record: ParkedEntry): Boolean

Whether record says what this state holds already, whenever it was published.

Link copied to clipboard
fun names(record: ParkedEntry): Boolean

Whether record is of the entry this state records: its service, subscription and aggregate.

Link copied to clipboard

Resolved; failedAt becomes the parking resolved when it is a later one, the bound of the late records.