akka.persistence.multidc.scaladsl
Actor context for ReplicatedEntity with somewhat limited capabilities and additional functionality specifically replicated entities.
Actor context for ReplicatedEntity with somewhat limited capabilities and additional functionality specifically replicated entities.
Not for user extension.
Actor context for ReplicatedEntity with somewhat limited capabilities and additional functionality specifically replicated entities.
Actor context for ReplicatedEntity with somewhat limited capabilities and additional functionality specifically replicated entities.
Replies are sent with the sender()
ActorRef
in the context or an ActorRef
that is passed in
the command.
Not for user extension.
Not for user extension.
Not for user extension. Instances are available through factory methods on the CommandHandler companion.
CommandHandler
defines how to react on a commands and optionally functions for other signals,
e.g.
CommandHandler
defines how to react on a commands and optionally functions for other signals,
e.g. Termination
messages if watch
is used.
Note that you can have different handlers based on current state by using
CommandHandler.byState
.
Instances available through ReplicatedEntity.CommandHandler
Not for user extension.
Context passed to ReplicatedEntity.tagsFor
when tagging events.
Context passed to ReplicatedEntity.tagsFor
when tagging events.
Context passed to ReplicatedEntity.eventTrigger
.
Context passed to ReplicatedEntity.eventTrigger
.
The Props
for the actor that can run a ReplicatedEntity
with Cluster Sharding.
The Props
for the actor that can run a ReplicatedEntity
with Cluster Sharding.
Use the same as the entity type name in Cluster Sharding.
It is a prefix for the persistenceId
, which is concatenated with the entityId
and the data
center identifier. Note that this can't be changed, since it is part of the storage key (persistenceId
).
Factory for creating a new instance of the entity. It has to be a factory so that a new instance is created in case the actor is restarted.
Configuration settings.
The Props
for the actor that can run a ReplicatedEntity
.
The Props
for the actor that can run a ReplicatedEntity
.
Use #clusterShardingProps instead when using Cluster Sharding.
Prefix for the persistenceId
, which is concatenated with
the entityId
and the data center identifier. Empty string is a valid prefix if the
entityId
itself is globally unique. Note that this can't be changed, since it is part of
the storage key (persistenceId
).
The identifier of the entity. The persistenceId
includes this entityId and is concatenated with persistenceIdPrefix
and the data center
identifier.
Factory for creating a new instance of the entity. It has to be a factory so that a new instance is created in case the actor is restarted.
Configuration settings.
See the ReplicatedEntity class for details.