Package fr.maif.eventsourcing
Class ReactivePostgresKafkaEventProcessorBuilder.BuilderWithEventHandler<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event,Meta,Context>
java.lang.Object
fr.maif.eventsourcing.ReactivePostgresKafkaEventProcessorBuilder.BuilderWithEventHandler<S,E,Meta,Context>
- Enclosing class:
- ReactivePostgresKafkaEventProcessorBuilder
public static class ReactivePostgresKafkaEventProcessorBuilder.BuilderWithEventHandler<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event,Meta,Context>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal fr.maif.eventsourcing.EventStore.ConcurrentReplayStrategyfinal fr.maif.eventsourcing.format.JacksonSimpleFormat<Context>final fr.maif.eventsourcing.format.JacksonEventFormat<?,E> final ReactivePostgresEventStore<fr.maif.jooq.PgAsyncTransaction,E, Meta, Context> final fr.maif.eventsourcing.format.JacksonSimpleFormat<Meta>final fr.maif.jooq.PgAsyncPoolfinal TableNamesfinal fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction> -
Constructor Summary
ConstructorsConstructorDescriptionBuilderWithEventHandler(fr.maif.jooq.PgAsyncPool pgAsyncPool, TableNames tableNames, fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.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, ReactivePostgresEventStore<fr.maif.jooq.PgAsyncTransaction, E, Meta, Context> eventStore, fr.maif.eventsourcing.EventHandler<S, E> eventHandler) -
Method Summary
Modifier and TypeMethodDescriptionwithAggregateStore(fr.maif.eventsourcing.AggregateStore<S, String, fr.maif.jooq.PgAsyncTransaction> aggregateStore) withAggregateStore(Function<ReactivePostgresKafkaEventProcessorBuilder.BuilderWithEventHandler<S, E, Meta, Context>, fr.maif.eventsourcing.AggregateStore<S, String, fr.maif.jooq.PgAsyncTransaction>> builder)
-
Field Details
-
pgAsyncPool
public final fr.maif.jooq.PgAsyncPool pgAsyncPool -
tableNames
-
transactionManager
public final fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.PgAsyncTransaction> 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 ReactivePostgresEventStore<fr.maif.jooq.PgAsyncTransaction,E extends fr.maif.eventsourcing.Event, eventStoreMeta, Context> -
eventHandler
-
-
Constructor Details
-
BuilderWithEventHandler
public BuilderWithEventHandler(fr.maif.jooq.PgAsyncPool pgAsyncPool, TableNames tableNames, fr.maif.eventsourcing.TransactionManager<fr.maif.jooq.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, ReactivePostgresEventStore<fr.maif.jooq.PgAsyncTransaction, E, Meta, Context> eventStore, fr.maif.eventsourcing.EventHandler<S, E> eventHandler)
-
-
Method Details
-
withAggregateStore
-
withAggregateStore
-
withDefaultAggregateStore
public ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<S,E, withDefaultAggregateStore()Meta, Context>
-