SimpleDomainEventStream
data class SimpleDomainEventStream(val id: String = generateGlobalId(), val requestId: String, val header: Header = DefaultHeader.empty(), val body: List<DomainEvent<*>>) : DomainEventStream, Iterable<DomainEvent<*>>
Simple implementation of DomainEventStream.
This data class provides a concrete implementation of the DomainEventStream interface, containing a list of domain events with associated metadata.
See also
Throws
if the event list is empty
Constructors
Link copied to clipboard
constructor(id: String = generateGlobalId(), requestId: String, header: Header = DefaultHeader.empty(), body: List<DomainEvent<*>>)
Creates a new SimpleDomainEventStream