AggregateSnapshotDispatcher
Dispatcher for handling snapshot operations on state events for a specific aggregate. Routes state event exchanges to the snapshot handler for processing.
Parameters
the handler responsible for creating and storing snapshots
the named aggregate this dispatcher handles
the name of this dispatcher (default: aggregateName-AggregateSnapshotDispatcher)
the number of parallel processing groups (default: MessageParallelism.DEFAULT_PARALLELISM)
the scheduler for processing messages
the flux of state event exchanges to process
Constructors
Properties
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.
Generates a unique ID string for this NamedAggregate.
Gets the context alias prefix for this bounded context.
Handles a state event exchange by setting the snapshot function and delegating to the snapshot handler.
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.
Computes the group key for parallel processing based on the message.
Converts this NamedAggregate to its string representation.
Converts this NamedAggregate to a string representation using the context alias.