Hop

class Hop @InternalWowApi constructor(val stage: Stage, val context: String? = null, val subscription: String? = null)

One hop of a wait chain: a stage, in a bounded context, of a subscription when the stage is Stage.HANDLED.

A null context means the context of the command the wait started with. Build one with accepted, committed, handled or snapshot; fields may be added, so the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(stage: Stage, context: String? = null, subscription: String? = null)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun copyWith(stage: Stage = this.stage, context: String? = this.context, subscription: String? = this.subscription): Hop

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

This hop as the Wow-Wait header spells it: accepted, committed, snapshot and handled(subscription), each with its context when it has one: committed(ctx), snapshot(ctx), handled(ctx/subscription). A subscription may hold dots (processor.function), so / sets the context apart.