ReceiptHandler

Hands the receipts of the commands a context's sagas derived to the sagas' handlers, executes what they derive and returns their ids; null when no handler takes the receipt. me.ahoo.wow.runtime.binding.SagaReceipts is the annotated sagas'.

Functions

Link copied to clipboard
abstract suspend fun committed(committed: CommandReceipt.Committed<*>, command: Class<*>, wait: WaitContext? = null): List<String>?

Hands committed, of a command of the class command, to the saga's @OnCommitted handler of it. wait is the rest of the command's wait chain past its commit, if any: when its next hop is that handler, the handler's commands carry it on and the hop is signalled, as a saga's hop is.

Link copied to clipboard
abstract suspend fun rejected(rejected: CommandReceipt.Rejected<*>, command: Class<*>): List<String>?

Hands rejected, of a command of the class command, to the saga's @OnRejected handler of it.