public class ReplicatedEntity$
extends java.lang.Object
ReplicatedEntity class for details.| Modifier and Type | Field and Description |
|---|---|
static ReplicatedEntity$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
| Constructor and Description |
|---|
ReplicatedEntity$() |
| Modifier and Type | Method and Description |
|---|---|
<Command,Event,State> |
clusterShardingProps(java.lang.String entityTypeName,
scala.Function0<ReplicatedEntity<Command,Event,State>> entityFactory,
PersistenceMultiDcSettings settings,
scala.reflect.ClassTag<Command> evidence$3)
The
Props for the actor that can run a ReplicatedEntity with Cluster Sharding. |
<Command,Event,State> |
props(java.lang.String persistenceIdPrefix,
java.lang.String entityId,
scala.Function0<ReplicatedEntity<Command,Event,State>> entityFactory,
PersistenceMultiDcSettings settings,
scala.reflect.ClassTag<Command> evidence$2)
The
Props for the actor that can run a ReplicatedEntity. |
public static final ReplicatedEntity$ MODULE$
public <Command,Event,State> akka.actor.Props props(java.lang.String persistenceIdPrefix,
java.lang.String entityId,
scala.Function0<ReplicatedEntity<Command,Event,State>> entityFactory,
PersistenceMultiDcSettings settings,
scala.reflect.ClassTag<Command> evidence$2)
Props for the actor that can run a ReplicatedEntity.
Use clusterShardingProps(java.lang.String, scala.Function0<akka.persistence.multidc.scaladsl.ReplicatedEntity<Command, Event, State>>, akka.persistence.multidc.PersistenceMultiDcSettings, scala.reflect.ClassTag<Command>) instead when using Cluster Sharding.
persistenceIdPrefix - 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).entityId - The identifier of the entity. The persistenceId
includes this entityId and is concatenated with persistenceIdPrefix and the data center
identifier.entityFactory - 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.settings - Configuration settings.evidence$2 - (undocumented)public <Command,Event,State> akka.actor.Props clusterShardingProps(java.lang.String entityTypeName,
scala.Function0<ReplicatedEntity<Command,Event,State>> entityFactory,
PersistenceMultiDcSettings settings,
scala.reflect.ClassTag<Command> evidence$3)
Props for the actor that can run a ReplicatedEntity with Cluster Sharding.
entityTypeName - 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).entityFactory - 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.settings - Configuration settings.evidence$3 - (undocumented)