Package fr.maif.eventsourcing
Class DefaultReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event,Meta,Context,TxCtx>
java.lang.Object
fr.maif.eventsourcing.DefaultReactorAggregateStore<S,E,Meta,Context,TxCtx>
- All Implemented Interfaces:
ReactorAggregateStore<S,String, TxCtx>
public class DefaultReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event,Meta,Context,TxCtx>
extends Object
implements ReactorAggregateStore<S,String,TxCtx>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultReactorAggregateStore(ReactorEventStore<TxCtx, E, Meta, Context> eventStore, fr.maif.eventsourcing.EventHandler<S, E> eventEventHandler, ReactorTransactionManager<TxCtx> transactionManager) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<io.vavr.control.Option<S>>getAggregate(String entityId) reactor.core.publisher.Mono<io.vavr.control.Option<S>>getAggregate(TxCtx txCtx, String entityId) getAggregates(TxCtx txCtx, io.vavr.collection.List<String> entityIds) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.maif.eventsourcing.ReactorAggregateStore
buildAggregateAndStoreSnapshot, getSnapshot, getSnapshots, storeSnapshot, toAggregateStore
-
Constructor Details
-
DefaultReactorAggregateStore
public DefaultReactorAggregateStore(ReactorEventStore<TxCtx, E, Meta, Context> eventStore, fr.maif.eventsourcing.EventHandler<S, E> eventEventHandler, ReactorTransactionManager<TxCtx> transactionManager)
-
-
Method Details
-
getAggregate
- Specified by:
getAggregatein interfaceReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event, Meta>
-
getAggregates
public reactor.core.publisher.Mono<io.vavr.collection.Map<String,io.vavr.control.Option<S>>> getAggregates(TxCtx txCtx, io.vavr.collection.List<String> entityIds) - Specified by:
getAggregatesin interfaceReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event, Meta>
-
getAggregate
public reactor.core.publisher.Mono<io.vavr.control.Option<S>> getAggregate(TxCtx txCtx, String entityId) - Specified by:
getAggregatein interfaceReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event, Meta>
-