EventStore
Interface for storing and retrieving domain event streams. Provides methods to append events and load event streams by aggregate ID and version/time ranges.
Author
ahoo wang
Inheritors
Functions
Appends a domain event stream to the event store. Ensures transaction consistency and handles version conflicts.
Loads the last domain event stream for the specified aggregate.
Loads domain event streams for the specified aggregate within the given version range. The range is inclusive: headVersion, tailVersion.
Loads domain event streams for the specified aggregate within the given event time range. The range is inclusive: headEventTime, tailEventTime.
Wraps an EventStore with metrics collection capabilities. Returns a MetricEventStore that collects metrics on event storage operations.
Loads a single domain event stream for the specified aggregate at the given version.