Package fr.maif.eventsourcing
Class DefaultReactorEventProcessor<Error,S extends fr.maif.eventsourcing.State<S>,C extends fr.maif.eventsourcing.Command<Meta,Context>,E extends fr.maif.eventsourcing.Event,TxCtx,Message,Meta,Context>
java.lang.Object
fr.maif.eventsourcing.DefaultReactorEventProcessor<Error,S,C,E,TxCtx,Message,Meta,Context>
- All Implemented Interfaces:
ReactorEventProcessor<Error,,S, C, E, TxCtx, Message, Meta, Context> Closeable,AutoCloseable
public class DefaultReactorEventProcessor<Error,S extends fr.maif.eventsourcing.State<S>,C extends fr.maif.eventsourcing.Command<Meta,Context>,E extends fr.maif.eventsourcing.Event,TxCtx,Message,Meta,Context>
extends Object
implements ReactorEventProcessor<Error,S,C,E,TxCtx,Message,Meta,Context>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<io.vavr.collection.List<io.vavr.control.Either<Error,fr.maif.eventsourcing.ProcessingSuccess<S, E, Meta, Context, Message>>>> batchProcessCommand(io.vavr.collection.List<C> commands) reactor.core.publisher.Mono<fr.maif.eventsourcing.TransactionManager.InTransactionResult<io.vavr.collection.List<io.vavr.control.Either<Error,fr.maif.eventsourcing.ProcessingSuccess<S, E, Meta, Context, Message>>>>> batchProcessCommand(TxCtx txCtx, io.vavr.collection.List<C> commands) voidclose()reactor.core.publisher.Mono<io.vavr.control.Option<S>>getAggregate(String id) reactor.core.publisher.Mono<io.vavr.control.Either<Error,fr.maif.eventsourcing.ProcessingSuccess<S, E, Meta, Context, Message>>> processCommand(C command)
-
Constructor Details
-
DefaultReactorEventProcessor
-
-
Method Details
-
processCommand
-
batchProcessCommand
-
batchProcessCommand
-
getAggregate
-
eventStore
-
getAggregateStore
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-