WhenStage

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
abstract fun inject(inject: ServiceProvider.() -> Unit): WhenStage<T>
open fun <SERVICE : Any> inject(service: SERVICE, serviceName: String = service.javaClass.toName(), serviceType: KType = service.javaClass.kotlin.defaultType): WhenStage<T>
Link copied to clipboard
open fun when(event: Any): ExpectStage<T>
open fun when(event: Any, state: Any?, ownerId: String = OwnerId.Companion.DEFAULT_OWNER_ID): ExpectStage<T>
Link copied to clipboard
abstract fun whenEvent(event: Any, state: Any? = null, ownerId: String = OwnerId.Companion.DEFAULT_OWNER_ID): ExpectStage<T>