StatelessSagaFunction
class StatelessSagaFunction(val delegate: MessageFunction<Any, DomainEventExchange<*>, Mono<*>>, commandGateway: CommandGateway, commandMessageFactory: CommandMessageFactory) : MessageFunction<Any, DomainEventExchange<*>, Mono<CommandStream>> , Decorator<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>
A stateless saga function that processes domain events and generates command streams. This function wraps a delegate message function and extends its behavior to handle command execution and collection into a CommandStream for stateless saga processing.
Parameters
delegate
The underlying message function that handles the domain event processing.
commandGateway
The gateway used to send commands.
commandMessageFactory
The factory for creating command messages.
Constructors
Link copied to clipboard
constructor(delegate: MessageFunction<Any, DomainEventExchange<*>, Mono<*>>, commandGateway: CommandGateway, commandMessageFactory: CommandMessageFactory)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The set of named aggregates (topics) that this function supports. The function will only process messages that match one of these aggregates.
Link copied to clipboard
The class type of message bodies that this function can process. Used to determine if a message is supported by checking if the message body is an instance of this type.