ExecutionId

class ExecutionId @InternalWowApi constructor(val context: String, val subscription: String, val ref: AggregateRef, val version: Int)

One execution of a subscription's handler for one commit: the subscription, by its bounded context and its subscription name there (processor.function, unique within the context alone), the aggregate ref and the committed version. It is deterministic: handling the same commit again, after a retry, a replay or a lease handover, gives the same id. It is per stream: the idempotency key of an outside call is SubscriptionContext.invocationKey, which tells apart the calls of a handler for each event.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(context: String, subscription: String, ref: AggregateRef, version: Int)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun copyWith(context: String = this.context, subscription: String = this.subscription, ref: AggregateRef = this.ref, version: Int = this.version): ExecutionId

This ExecutionId 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

context.subscription:ref@version, such as example.cart-projection.onEvent:example.cart/tenant/c-1@3: the context, which holds no ., : or %, the subscription with its % and : percent-escaped and the ref as its own text writes it (Escapes), so no two executions share a text, even of two contexts' subscriptions of one name.