Interface EventSourcedEntityModule.MessagingModelPhase<ID,E>
- Type Parameters:
ID- The type of identifier used to identify the event-sourced entity.E- The type of the event-sourced entity being built.
- Enclosing interface:
EventSourcedEntityModule<ID,E>
public static interface EventSourcedEntityModule.MessagingModelPhase<ID,E>
Phase of the module's building process in which the user should define the messaging metamodel for the
event-sourced entity being built. This metamodel is used to evolve the entity and handle commands for the entity
(if applicable).
-
Method Summary
Modifier and TypeMethodDescriptionmessagingModel(EntityMetamodelConfigurationBuilder<E> metamodelFactory) Registers the givenEntityMetamodelConfigurationBuilderof anEntityMetamodelas the messaging metamodel for the event-sourced entity being built.
-
Method Details
-
messagingModel
EventSourcedEntityModule.EntityFactoryPhase<ID,E> messagingModel(@Nonnull EntityMetamodelConfigurationBuilder<E> metamodelFactory) Registers the givenEntityMetamodelConfigurationBuilderof anEntityMetamodelas the messaging metamodel for the event-sourced entity being built. This metamodel is used to evolve the entity and handle commands for the entity (if applicable).- Parameters:
metamodelFactory- AEntityMetamodelConfigurationBuilderconstructing theEntityMetamodelfor the event-sourced entity.- Returns:
- The
EventSourcedEntityModule.EntityFactoryPhasephase of this builder, for a fluent API.
-