Package fr.maif.eventsourcing
Class ReactorPostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,S extends fr.maif.eventsourcing.State<S>,C extends fr.maif.eventsourcing.Command<Meta,Context>,E extends fr.maif.eventsourcing.Event,Message,Meta,Context>
java.lang.Object
fr.maif.eventsourcing.ReactorPostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,S,C,E,Message,Meta,Context>
- Enclosing class:
- ReactorPostgresKafkaEventProcessorBuilder
public static class ReactorPostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,S extends fr.maif.eventsourcing.State<S>,C extends fr.maif.eventsourcing.Command<Meta,Context>,E extends fr.maif.eventsourcing.Event,Message,Meta,Context>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ReactorAggregateStore<S,String, fr.maif.jooq.reactor.PgAsyncTransaction> final fr.maif.eventsourcing.CommandHandler<Error,S, C, E, Message, fr.maif.jooq.reactor.PgAsyncTransaction> final fr.maif.eventsourcing.EventStore.ConcurrentReplayStrategyfinal fr.maif.eventsourcing.format.JacksonSimpleFormat<Context>final fr.maif.eventsourcing.format.JacksonEventFormat<?,E> final ReactorEventStore<fr.maif.jooq.reactor.PgAsyncTransaction,E, Meta, Context> final fr.maif.eventsourcing.format.JacksonSimpleFormat<Meta>final fr.maif.jooq.reactor.PgAsyncPoolfinal TableNamesfinal ReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction> -
Constructor Summary
ConstructorsConstructorDescriptionBuilderWithCommandHandler(fr.maif.jooq.reactor.PgAsyncPool pgAsyncPool, TableNames tableNames, ReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction> transactionManager, fr.maif.eventsourcing.format.JacksonEventFormat<?, E> eventFormat, fr.maif.eventsourcing.format.JacksonSimpleFormat<Meta> metaFormat, fr.maif.eventsourcing.format.JacksonSimpleFormat<Context> contextFormat, fr.maif.reactor.eventsourcing.ReactorKafkaEventPublisher<E, Meta, Context> eventPublisher, fr.maif.eventsourcing.EventStore.ConcurrentReplayStrategy concurrentReplayStrategy, ReactorEventStore<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context> eventStore, ReactorAggregateStore<S, String, fr.maif.jooq.reactor.PgAsyncTransaction> aggregateStore, fr.maif.eventsourcing.EventHandler<S, E> eventHandler, fr.maif.eventsourcing.CommandHandler<Error, S, C, E, Message, fr.maif.jooq.reactor.PgAsyncTransaction> commandHandler) -
Method Summary
Modifier and TypeMethodDescriptionwithProjections(fr.maif.eventsourcing.ProjectionGetter<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context>... projections) withProjections(io.vavr.collection.List<? extends fr.maif.eventsourcing.ProjectionGetter<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context>> projections) withProjections(Function<ReactorPostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error, S, C, E, Message, Meta, Context>, io.vavr.collection.List<? extends fr.maif.eventsourcing.ProjectionGetter<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context>>> projections)
-
Field Details
-
pgAsyncPool
public final fr.maif.jooq.reactor.PgAsyncPool pgAsyncPool -
tableNames
-
transactionManager
-
eventFormat
public final fr.maif.eventsourcing.format.JacksonEventFormat<?,E extends fr.maif.eventsourcing.Event> eventFormat -
metaFormat
-
contextFormat
-
eventPublisher
-
concurrentReplayStrategy
public final fr.maif.eventsourcing.EventStore.ConcurrentReplayStrategy concurrentReplayStrategy -
eventStore
public final ReactorEventStore<fr.maif.jooq.reactor.PgAsyncTransaction,E extends fr.maif.eventsourcing.Event, eventStoreMeta, Context> -
aggregateStore
public final ReactorAggregateStore<S extends fr.maif.eventsourcing.State<S>,String, aggregateStorefr.maif.jooq.reactor.PgAsyncTransaction> -
eventHandler
-
commandHandler
-
-
Constructor Details
-
BuilderWithCommandHandler
public BuilderWithCommandHandler(fr.maif.jooq.reactor.PgAsyncPool pgAsyncPool, TableNames tableNames, ReactorTransactionManager<fr.maif.jooq.reactor.PgAsyncTransaction> transactionManager, fr.maif.eventsourcing.format.JacksonEventFormat<?, E> eventFormat, fr.maif.eventsourcing.format.JacksonSimpleFormat<Meta> metaFormat, fr.maif.eventsourcing.format.JacksonSimpleFormat<Context> contextFormat, fr.maif.reactor.eventsourcing.ReactorKafkaEventPublisher<E, Meta, Context> eventPublisher, fr.maif.eventsourcing.EventStore.ConcurrentReplayStrategy concurrentReplayStrategy, ReactorEventStore<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context> eventStore, ReactorAggregateStore<S, String, fr.maif.jooq.reactor.PgAsyncTransaction> aggregateStore, fr.maif.eventsourcing.EventHandler<S, E> eventHandler, fr.maif.eventsourcing.CommandHandler<Error, S, C, E, Message, fr.maif.jooq.reactor.PgAsyncTransaction> commandHandler)
-
-
Method Details
-
withProjections
-
withProjections
public ReactorPostgresKafkaEventProcessorBuilder.BuilderWithProjections<Error,S, withProjectionsC, E, Message, Meta, Context> (Function<ReactorPostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error, S, C, E, Message, Meta, Context>, io.vavr.collection.List<? extends fr.maif.eventsourcing.ProjectionGetter<fr.maif.jooq.reactor.PgAsyncTransaction, E, Meta, Context>>> projections) -
withProjections
-
withNoProjections
-