-
- All Implemented Interfaces:
-
org.enodeframework.domain.AggregateStorage
public final class EventSourcingAggregateStorage implements AggregateStorage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEventSourcingAggregateStorage.Companion
-
Constructor Summary
Constructors Constructor Description EventSourcingAggregateStorage(EventStore eventStore, AggregateRootFactory aggregateRootFactory, AggregateSnapshotter aggregateSnapshotter, TypeNameProvider typeNameProvider)
-
Method Summary
Modifier and Type Method Description <T extends AggregateRoot> CompletableFuture<T>getAsync(Class<T> aggregateRootType, String aggregateRootId)Get an aggregate from aggregate storage. -
-
Constructor Detail
-
EventSourcingAggregateStorage
EventSourcingAggregateStorage(EventStore eventStore, AggregateRootFactory aggregateRootFactory, AggregateSnapshotter aggregateSnapshotter, TypeNameProvider typeNameProvider)
-
-
Method Detail
-
getAsync
<T extends AggregateRoot> CompletableFuture<T> getAsync(Class<T> aggregateRootType, String aggregateRootId)
Get an aggregate from aggregate storage.
-
-
-
-