Uses of Interface
dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.CommandHandler
Packages that use CommandHandler
-
Uses of CommandHandler in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider that return CommandHandlerModifier and TypeMethodDescriptionstatic <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, COMMAND, EVENT, ERROR, STATE>
CommandHandler<COMMAND,EVENT, ERROR> CommandHandler.deciderBasedCommandHandler(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, Class<ID> aggregateIdType, AggregateIdResolver<COMMAND, ID> aggregateIdFromCommandResolver, AggregateIdResolver<EVENT, ID> aggregateIdFromEventResolver, AggregateSnapshotRepository aggregateSnapshotRepository, Class<STATE> stateType, Decider<COMMAND, EVENT, ERROR, STATE> decider) Create an instance of aCommandHandlerthat is responsible for loading any existing AggregateSTATEfrom the underlyingEventStoreand coordinate persisting any changes to the Aggregate, in the form ofEVENT's, to theEventStoreas part of an activeUnitOfWork(if one exists)
The actual logic is delegated to an instance of aDecider