SimpleDomainEventStream
Simple implementation of DomainEventStream.
This data class provides a concrete implementation of the DomainEventStream interface, containing a list of domain events with associated metadata.
Parameters
The stream ID
The request ID
The message header
The list of domain events (must not be empty)
See also
Throws
if the event list is empty
Constructors
Creates a new SimpleDomainEventStream
Properties
The aggregate ID (derived from the first event)
The aggregate name (derived from aggregateId)
The list of domain events in this stream
The bounded context name (derived from aggregateId)
The creation timestamp (derived from the first event)
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.
Determines if this event stream should be ignored during event sourcing.
Checks if the named aggregate is available locally at runtime.
Checks if this message matches the given function for compensation purposes.
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Finds the aggregate type class associated with this named aggregate, throwing an exception if not found.
Extension function to convert a NamedAggregate to an EventNamedAggregate.
Computes a grouping key for parallel processing based on the aggregate ID.
Converts this NamedAggregate to its string representation.
Converts a DomainEventStream to a StateEvent using the state from a ReadOnlyStateAggregate.
Converts a DomainEventStream to a StateEvent with the given state.
Converts this NamedAggregate to a string representation using the context alias.