AbstractEventStore
Abstract base implementation of EventStore that provides common functionality for event storage and retrieval. This class handles logging, validation, and error mapping for event stream operations.
Inheritors
Functions
Appends a domain event stream to the event store. Logs the operation and maps version conflicts to appropriate exceptions.
Checks whether the request ID already exists for the specified aggregate.
Loads the last domain event stream for the specified aggregate.
Loads domain event streams for the specified aggregate within the given version range. Validates that headVersion is non-negative and tailVersion is greater than or equal to headVersion.
Loads domain event streams for the specified aggregate within the given event time range. Validates that tailEventTime is greater than or equal to headEventTime.
Wraps an EventStore with metrics collection capabilities. Returns a MetricEventStore that collects metrics on event storage operations.
Scans for aggregate IDs within the specified named aggregate, starting after the given ID. Returns a limited number of aggregate IDs in lexicographical order.
Loads a single domain event stream for the specified aggregate at the given version.