-
- All Implemented Interfaces:
public interface EventStore
-
-
Method Summary
Modifier and Type Method Description abstract CompletableFuture<EventAppendResult>batchAppendAsync(List<DomainEventStream> eventStreams)Batch append the given event streams to the event store async. abstract CompletableFuture<DomainEventStream>findAsync(String aggregateRootId, Integer version)Find a single event stream by aggregateRootId and version async. abstract CompletableFuture<DomainEventStream>findAsync(String aggregateRootId, String commandId)Find a single event stream by aggregateRootId and commandId async. abstract CompletableFuture<List<DomainEventStream>>queryAggregateEventsAsync(String aggregateRootId, String aggregateRootTypeName, Integer minVersion, Integer maxVersion)Query a range of event streams of a single aggregate from event store async. -
-
Method Detail
-
batchAppendAsync
abstract CompletableFuture<EventAppendResult> batchAppendAsync(List<DomainEventStream> eventStreams)
Batch append the given event streams to the event store async.
-
findAsync
abstract CompletableFuture<DomainEventStream> findAsync(String aggregateRootId, Integer version)
Find a single event stream by aggregateRootId and version async.
-
findAsync
abstract CompletableFuture<DomainEventStream> findAsync(String aggregateRootId, String commandId)
Find a single event stream by aggregateRootId and commandId async.
-
queryAggregateEventsAsync
abstract CompletableFuture<List<DomainEventStream>> queryAggregateEventsAsync(String aggregateRootId, String aggregateRootTypeName, Integer minVersion, Integer maxVersion)
Query a range of event streams of a single aggregate from event store async.
-
-
-
-