AbstractCommandFunction
abstract class AbstractCommandFunction<C : Any>(val commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>) : MessageFunction<C, ServerCommandExchange<*>, Mono<DomainEventStream>>
Abstract base class for command functions that handle command processing with after-command functions.
This class provides the framework for executing commands and their associated after-command functions, combining their results into a domain event stream.
Parameters
afterCommandFunctions
List of after-command functions to execute after the main command.
Type Parameters
C
The type of the command aggregate.
Inheritors
Constructors
Link copied to clipboard
constructor(commandAggregate: CommandAggregate<C, *>, afterCommandFunctions: List<AfterCommandFunction<C>>)
Creates a new AbstractCommandFunction with the specified command aggregate and after functions.