Uses of Interface
dk.cloudcreate.essentials.components.eventsourced.aggregates.decider.AggregateIdResolver
Packages that use AggregateIdResolver
-
Uses of AggregateIdResolver in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.decider with parameters of type AggregateIdResolverModifier 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