ReplyTo

class ReplyTo @InternalWowApi constructor(val context: String, val subscription: String, val ref: AggregateRef, val version: Int, val committed: Boolean = false)

Where the receipt of a cross-context command goes when the target rejects it: the receipts topic of context, the sender's, and the saga handler subscription (processor.function) whose execution of the commit ref@version derived it, the executionId the saga's @OnRejected handler gets. The design's {context, subscription} carries the commit too, so the receipt names the execution exactly.

committed (an addition within format 1) asks for the success receipt too: the saga has an @OnCommitted handler of the command, so the target sends the receipt of its commit there as well. A reader of an older version ignores it and sends none; one reading an older writer's reply has it false.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
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, committed: Boolean = this.committed): ReplyTo

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

The saga's execution that derived the command.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String