AggregateStateEventDispatcher
Dispatcher for processing state events within a specific aggregate context.
This class handles the distribution and processing of state events for a particular named aggregate. It extends AbstractAggregateEventDispatcher to provide concrete implementation for state event processing, including access to aggregate state.
See also
Constructors
Creates a new AggregateStateEventDispatcher with the specified parameters
Properties
The handler for processing individual events
The registrar containing event processing functions
The flux of state event exchanges to process
The named aggregate this dispatcher handles
The level of parallelism for processing (default: DEFAULT_PARALLELISM)
Functions
Creates an AggregateId for this NamedAggregate with the specified parameters.
Finds the aggregate type class associated with this named aggregate.
Converts this NamedAggregate to its corresponding AggregateMetadata.
Creates a state domain event exchange from a state event exchange and domain event.
Generates a unique ID string for this NamedAggregate.
Gets the context alias prefix for this bounded context.
Handles a message exchange by processing all events in the stream.
Checks if the named aggregate is available locally at runtime.
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Finds the aggregate type class associated with this named aggregate, throwing an exception if not found.
Safely processes the next message.
Handles errors that occur during message processing.
Extension function to convert a NamedAggregate to an EventNamedAggregate.
Converts the exchange to a group key for parallel processing.
Converts this NamedAggregate to its string representation.
Converts this NamedAggregate to a string representation using the context alias.