public class EventuateAggregateStoreImpl extends Object implements EventuateAggregateStore
| Constructor and Description |
|---|
EventuateAggregateStoreImpl(AggregateCrud aggregateCrud,
AggregateEvents aggregateEvents,
SnapshotManager snapshotManager,
MissingApplyEventMethodStrategy missingApplyEventMethodStrategy) |
public EventuateAggregateStoreImpl(AggregateCrud aggregateCrud, AggregateEvents aggregateEvents, SnapshotManager snapshotManager, MissingApplyEventMethodStrategy missingApplyEventMethodStrategy)
public void setSerializedEventDeserializer(SerializedEventDeserializer serializedEventDeserializer)
public <T extends Aggregate<T>> EntityIdAndVersion save(Class<T> clasz, List<Event> events)
save in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityIdAndVersion save(Class<T> clasz, List<Event> events, SaveOptions saveOptions)
save in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityIdAndVersion save(Class<T> clasz, List<Event> events, Optional<SaveOptions> saveOptions)
save in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityWithMetadata<T> find(Class<T> clasz, String entityId)
find in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityWithMetadata<T> find(Class<T> clasz, String entityId, FindOptions findOptions)
find in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityWithMetadata<T> find(Class<T> clasz, String entityId, Optional<FindOptions> findOptions)
find in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityIdAndVersion update(Class<T> clasz, EntityIdAndVersion entityIdAndVersion, List<Event> events)
update in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityIdAndVersion update(Class<T> clasz, EntityIdAndVersion entityIdAndVersion, List<Event> events, UpdateOptions updateOptions)
update in interface EventuateAggregateStorepublic <T extends Aggregate<T>> EntityIdAndVersion update(Class<T> clasz, EntityIdAndVersion entityIdAndVersion, List<Event> events, Optional<UpdateOptions> updateOptions)
update in interface EventuateAggregateStorepublic void subscribe(String subscriberId, Map<String,Set<String>> aggregatesAndEvents, SubscriberOptions subscriberOptions, Function<DispatchedEvent<Event>,CompletableFuture<?>> handler)
subscribe in interface EventuateAggregateStorepublic Optional<Snapshot> possiblySnapshot(Aggregate aggregate, Optional<Int128> snapshotVersion, List<EventWithMetadata> oldEvents, List<Event> newEvents)
EventuateAggregateStorepossiblySnapshot in interface EventuateAggregateStoreaggregate - - the updated aggregatesnapshotVersion - - the version of the snapshot, if any, that the aggregate was created fromoldEvents - - the old events that were used to recreate the aggregatenewEvents - - the new events generated as a result of executing a commandpublic Aggregate recreateFromSnapshot(Class<?> clasz, Snapshot snapshot)
EventuateAggregateStorerecreateFromSnapshot in interface EventuateAggregateStoreclasz - the aggregate classsnapshot - the snapshotCopyright © 2021. All rights reserved.