Package akka.cluster.sharding.typed
Class ReplicatedEntity$
- java.lang.Object
-
- akka.cluster.sharding.typed.ReplicatedEntity$
-
public class ReplicatedEntity$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ReplicatedEntity$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ReplicatedEntity$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M> ReplicatedEntity<M>
apply(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
Scala API: Defines theEntity
to use for a given replica, note that the behavior can be a behavior created withReplicatedEventSourcing
or an arbitrary non persistentBehavior
but must never be a regularEventSourcedBehavior
as 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 theEntity
to use for a given replica, note that the behavior can be aReplicatedEventSourcedBehavior
or an arbitrary non persistentBehavior
but must never be a regularEventSourcedBehavior
as that requires a single writer and that would cause it to have multiple writers.
-
-
-
Field Detail
-
MODULE$
public static final ReplicatedEntity$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
create
public <M> ReplicatedEntity<M> create(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
Java API: Defines theEntity
to use for a given replica, note that the behavior can be aReplicatedEventSourcedBehavior
or an arbitrary non persistentBehavior
but must never be a regularEventSourcedBehavior
as that requires a single writer and that would cause it to have multiple writers.
-
apply
public <M> ReplicatedEntity<M> apply(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
Scala API: Defines theEntity
to use for a given replica, note that the behavior can be a behavior created withReplicatedEventSourcing
or an arbitrary non persistentBehavior
but must never be a regularEventSourcedBehavior
as that requires a single writer and that would cause it to have multiple writers.
-
-