Package fr.maif.eventsourcing
Class ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<S extends fr.maif.eventsourcing.State<S>,E extends fr.maif.eventsourcing.Event,Meta,Context>
java.lang.Object
fr.maif.eventsourcing.ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<S,E,Meta,Context>
- Enclosing class:
- ReactivePostgresKafkaEventProcessorBuilder
public static class ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<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
ConstructorsConstructorDescriptionBuilderWithAggregateStore(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, fr.maif.eventsourcing.AggregateStore<S, String, fr.maif.jooq.PgAsyncTransaction> aggregateStore) -
Method Summary
Modifier and TypeMethodDescription<Error,C extends fr.maif.eventsourcing.Command<Meta, Context>, Message>
ReactivePostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,S, C, E, Message, Meta, Context> withCommandHandler(fr.maif.eventsourcing.CommandHandlerGetter<Error, S, C, E, Message, fr.maif.jooq.PgAsyncTransaction> commandHandler) <Error,C extends fr.maif.eventsourcing.Command<Meta, Context>, Message>
ReactivePostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,S, C, E, Message, Meta, Context> withCommandHandler(Function<ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<S, E, Meta, Context>, fr.maif.eventsourcing.CommandHandlerGetter<Error, S, C, E, Message, fr.maif.jooq.PgAsyncTransaction>> commandHandler)
-
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
-
aggregateStore
-
-
Constructor Details
-
BuilderWithAggregateStore
public BuilderWithAggregateStore(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, fr.maif.eventsourcing.AggregateStore<S, String, fr.maif.jooq.PgAsyncTransaction> aggregateStore)
-
-
Method Details
-
withCommandHandler
public <Error,C extends fr.maif.eventsourcing.Command<Meta, ReactivePostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,Context>, Message> S, withCommandHandlerC, E, Message, Meta, Context> (fr.maif.eventsourcing.CommandHandlerGetter<Error, S, C, E, Message, fr.maif.jooq.PgAsyncTransaction> commandHandler) -
withCommandHandler
public <Error,C extends fr.maif.eventsourcing.Command<Meta, ReactivePostgresKafkaEventProcessorBuilder.BuilderWithCommandHandler<Error,Context>, Message> S, withCommandHandlerC, E, Message, Meta, Context> (Function<ReactivePostgresKafkaEventProcessorBuilder.BuilderWithAggregateStore<S, E, Meta, Context>, fr.maif.eventsourcing.CommandHandlerGetter<Error, S, C, E, Message, fr.maif.jooq.PgAsyncTransaction>> commandHandler)
-