Companion

object Companion

Functions

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

The handler among handlers of the receipt of a command of command, chosen as RejectionBinding.handlerOf chooses 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.Committed<C>, SagaContext) -> List<CommandRequest<*>>): CommittedBinding<C>

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