akka.persistence.multidc.javadsl.ReplicatedEntity
CommandHandler defines how to react on a commands and optionally functions for other signals, e.g. Termination messages if watch is used.
CommandHandler
Termination
watch
Note that you can have different handers based on current state by using ReplicatedEntity#byStateCommandHandlerBuilder.
Select different handlers based on current state.
Convenience for simple commands that don't need the state and context.
CommandHandler
defines how to react on a commands and optionally functions for other signals, e.g.Termination
messages ifwatch
is used.Note that you can have different handers based on current state by using ReplicatedEntity#byStateCommandHandlerBuilder.