Companion

object Companion

Functions

Link copied to clipboard
fun handlerOf(handlers: List<RejectionBinding<*>>, command: Class<*>): RejectionBinding<*>?

The handler among handlers of the rejection of a command of command: the one whose commandType is command itself, else the nearest superclass or interface one names, else a CommandReceipt.Rejected<*> one; null when none handles it.

Link copied to clipboard
fun <C : Any> of(processor: String, function: String, commandType: Class<C>?, blocking: Boolean = false, derives: List<Class<*>> = emptyList(), schedules: List<Class<*>> = emptyList(), calls: List<Class<*>> = emptyList(), handle: suspend (CommandReceipt.Rejected<C>, SagaContext) -> List<CommandRequest<*>>): RejectionBinding<C>

A saga's @OnRejected handler function of processor, of the rejections of commandType (null: all).