Class ReplicatedEntity$
java.lang.Object
org.apache.pekko.cluster.sharding.typed.ReplicatedEntity$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicatedEntity$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<M> ReplicatedEntity<M>apply(ReplicaId replicaId, Entity<M, ShardingEnvelope<M>> entity) Scala API: Defines thepekko.cluster.sharding.typed.scaladsl.Entityto use for a given replica, note that the behavior can be a behavior created withpekko.persistence.typed.scaladsl.ReplicatedEventSourcingor an arbitrary non persistentpekko.actor.typed.Behaviorbut must never be a regularpekko.persistence.typed.scaladsl.EventSourcedBehavioras that requires a single writer and that would cause it to have multiple writers.<M> ReplicatedEntity<M>create(ReplicaId replicaId, Entity<M, ShardingEnvelope<M>> entity) Java API: Defines thepekko.cluster.sharding.typed.javadsl.Entityto use for a given replica, note that the behavior can be apekko.persistence.typed.javadsl.ReplicatedEventSourcedBehavioror an arbitrary non persistentpekko.actor.typed.Behaviorbut must never be a regularpekko.persistence.typed.javadsl.EventSourcedBehavioras that requires a single writer and that would cause it to have multiple writers.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ReplicatedEntity$
public ReplicatedEntity$()
-
-
Method Details
-
create
Java API: Defines thepekko.cluster.sharding.typed.javadsl.Entityto use for a given replica, note that the behavior can be apekko.persistence.typed.javadsl.ReplicatedEventSourcedBehavioror an arbitrary non persistentpekko.actor.typed.Behaviorbut must never be a regularpekko.persistence.typed.javadsl.EventSourcedBehavioras that requires a single writer and that would cause it to have multiple writers. -
apply
Scala API: Defines thepekko.cluster.sharding.typed.scaladsl.Entityto use for a given replica, note that the behavior can be a behavior created withpekko.persistence.typed.scaladsl.ReplicatedEventSourcingor an arbitrary non persistentpekko.actor.typed.Behaviorbut must never be a regularpekko.persistence.typed.scaladsl.EventSourcedBehavioras that requires a single writer and that would cause it to have multiple writers.
-