ParkedNotice

class ParkedNotice @InternalWowApi constructor(val kind: ParkedNotice.Kind, val group: String, val entry: ParkedAggregate, val spec: ParkedRetrySpec, val at: Long)

What a ParkedNotifier hears: kind happened at at (epoch milliseconds) to the aggregate ref, which the subscription subscription of context, run in lease group, parked from its event at fromVersion.

It is a view of the failure ledger's entry, with what a notification says: why the aggregate parked (reason) and when (failedAt), the automatic retries made so far (retries) of the maxRetries its retry spec allows, and when the next one is due (nextRetryAt). The entry itself (entry) and its retry spec (spec) are the ledger's records, at the SPI's level; an operator reads the rest of the entry in the ops console.

Fields may be added: Wow builds a notice (of, at the SPI's level); an application reads one.

Constructors

Link copied to clipboard
constructor(kind: ParkedNotice.Kind, group: String, entry: ParkedAggregate, spec: ParkedRetrySpec, at: Long)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
enum class Kind : Enum<ParkedNotice.Kind>

What befell the entry.

Properties

Link copied to clipboard
val at: Long
Link copied to clipboard

The context of the subscription that parked the entry.

Link copied to clipboard

The failure ledger's entry: a record of the ledger port's, so at the SPI's level.

Link copied to clipboard

When the aggregate parked (epoch milliseconds).

Link copied to clipboard

The version of the aggregate's event the subscription parked at, and goes on from once the entry clears.

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

How many automatic retries the entry's retry spec allows.

Link copied to clipboard

When the next automatic retry is due (epoch milliseconds), null when there is none.

Link copied to clipboard

Why the aggregate parked: what failed, never a value it failed on (see the failure guide), or, for an entry that can only be skipped, why.

Link copied to clipboard

The parked aggregate.

Link copied to clipboard

The automatic retries made so far.

Link copied to clipboard

The retry spec the entry is retried by: a record of the ledger port's, so at the SPI's level.

Link copied to clipboard

The subscription that parked the entry, by its name in context (processor.function, or a built-in's).

Functions

Link copied to clipboard
fun copyWith(kind: ParkedNotice.Kind = this.kind, group: String = this.group, entry: ParkedAggregate = this.entry, spec: ParkedRetrySpec = this.spec, at: Long = this.at): ParkedNotice

This ParkedNotice with the given fields replaced: Wow's own copy, left out of the ABI.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String