WhenStage

interface WhenStage<T : Any>

Stateless Saga:

  1. when event

  2. expect commands

Functions

Link copied to clipboard
abstract fun functionFilter(filter: (MessageFunction<*, *, *>) -> Boolean): WhenStage<T>
Link copied to clipboard
open fun functionName(functionName: String): WhenStage<T>
Link copied to clipboard
open fun <SERVICE : Any> inject(service: SERVICE): WhenStage<T>
abstract fun <SERVICE : Any> inject(service: SERVICE, serviceName: String): WhenStage<T>
Link copied to clipboard
open fun when(event: Any): ExpectStage<T>
abstract fun when(event: Any, state: Any?): ExpectStage<T>
Link copied to clipboard
open fun whenEvent(event: Any, state: Any? = null): ExpectStage<T>