Class Entity$
- java.lang.Object
-
- akka.cluster.sharding.typed.scaladsl.Entity$
-
- Type Parameters:
M- The type of message the entity accepts
public class Entity$ extends java.lang.ObjectDefines how the entity should be created. Used inClusterSharding.init(akka.cluster.sharding.typed.scaladsl.Entity<M, E>). More optional settings can be defined using thewithmethods of the returnedEntity.Any
Behaviorcan be used as a sharded entity actor, but the combination of sharding and persistent actors is very common and thereforeEventSourcedEntityis provided as a convenience for creating suchEventSourcedBehavior.param: typeKey A key that uniquely identifies the type of entity in this cluster param: createBehavior Create the behavior for an entity given a
EntityContext(includes entityId)
-
-
Constructor Summary
Constructors Constructor Description Entity$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M> Entity<M,ShardingEnvelope<M>>apply(EntityTypeKey<M> typeKey, scala.Function1<EntityContext,Behavior<M>> createBehavior)
-
-
-
Field Detail
-
MODULE$
public static final Entity$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public <M> Entity<M,ShardingEnvelope<M>> apply(EntityTypeKey<M> typeKey, scala.Function1<EntityContext,Behavior<M>> createBehavior)
-
-