public static interface ReplicatedEntity.CommandHandler<Command,Event,State>
ReplicatedEntity.CommandHandler companion.| Modifier and Type | Method and Description |
|---|---|
ReplicatedEntity.CommandHandler<Command,Event,State> |
onReceiveTimeout(scala.Function2<ReplicatedEntity.CommandContext,State,Effect<Event,State>> handler)
Register message handler for
ReceiveTimeout messages. |
ReplicatedEntity.CommandHandler<Command,Event,State> |
onTerminated(scala.Function3<ReplicatedEntity.CommandContext,State,akka.actor.Terminated,Effect<Event,State>> handler)
Register message handler for
Terminated messages. |
<M> ReplicatedEntity.CommandHandler<Command,Event,State> |
onTimer(scala.Function3<ReplicatedEntity.CommandContext,State,M,Effect<Event,State>> handler,
scala.reflect.ClassTag<M> evidence$1)
Register message handler for timer messages.
|
ReplicatedEntity.CommandHandler<Command,Event,State> onTerminated(scala.Function3<ReplicatedEntity.CommandContext,State,akka.actor.Terminated,Effect<Event,State>> handler)
Terminated messages.
If a handler for Terminated messages was previously defined this will
replace the previous handler.handler - (undocumented)ReplicatedEntity.CommandHandler<Command,Event,State> onReceiveTimeout(scala.Function2<ReplicatedEntity.CommandContext,State,Effect<Event,State>> handler)
ReceiveTimeout messages.
If a handler for ReceiveTimeout messages was previously defined this will
replace the previous handler.handler - (undocumented)<M> ReplicatedEntity.CommandHandler<Command,Event,State> onTimer(scala.Function3<ReplicatedEntity.CommandContext,State,M,Effect<Event,State>> handler, scala.reflect.ClassTag<M> evidence$1)
ActorContext.timers.
Adding a handler for a timer message class that was previously defined will replace the
previous handler for that class.handler - (undocumented)evidence$1 - (undocumented)