Package-level declarations

Types

Link copied to clipboard

Represents a stream of command messages generated in response to a domain event in a stateless saga. This interface provides access to the commands that should be sent as part of the saga's reaction to an event.

Link copied to clipboard
data class DefaultCommandStream(val domainEventId: String, commands: List<CommandMessage<*>>) : CommandStream, Iterable<CommandMessage<*>>

Default implementation of CommandStream that holds a list of command messages.

Link copied to clipboard

Default implementation of StatelessSagaHandler that uses a filter chain for processing. This handler applies a series of filters to domain event exchanges and handles errors gracefully.

Link copied to clipboard
class StatelessSagaDispatcher(val name: String, val parallelism: Int = MessageParallelism.DEFAULT_PARALLELISM, val domainEventBus: DomainEventBus, val stateEventBus: StateEventBus, val functionRegistrar: StatelessSagaFunctionRegistrar, val eventHandler: StatelessSagaHandler, schedulerSupplier: AggregateSchedulerSupplier = DefaultAggregateSchedulerSupplier("SagaDispatcher")) : AbstractEventDispatcher<Mono<*>>

Dispatcher for stateless sagas that handles domain events and coordinates command execution. This dispatcher extends AbstractEventDispatcher to provide event-driven processing for sagas that don't maintain state between events.

Link copied to clipboard

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.

Link copied to clipboard

Filter for stateless saga functions that applies to StatelessSagaDispatcher. This filter extends DomainEventFunctionFilter to provide filtering capabilities specific to stateless saga processing.

Link copied to clipboard
class StatelessSagaFunctionRegistrar(commandGateway: CommandGateway, commandMessageFactory: CommandMessageFactory, actual: MessageFunctionRegistrar<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>> = SimpleMessageFunctionRegistrar()) : AbstractEventFunctionRegistrar

Registrar for stateless saga functions that creates StatelessSagaFunction instances from processors annotated with saga metadata.

Link copied to clipboard

Handler interface for stateless sagas that processes domain events. Implementations of this interface handle the execution of saga logic in response to domain events.

Properties

Link copied to clipboard

Key used to store the command stream in the domain event exchange attributes.

Functions

Link copied to clipboard

Retrieves the command stream from the domain event exchange attributes.

Link copied to clipboard

Sets the command stream in the domain event exchange attributes. This allows the command stream to be associated with the domain event for later retrieval.