com.lightbend.lagom.internal.persistence.cluster
Start a cluster distribution.
Start a cluster distribution.
The name of the type of entity. This is used as the cluster sharding type name.
The props for the entity actor.
The entity ids to distribute over the cluster.
The cluster distribution settings.
the actor ref of the ShardRegion that is to be responsible for the shard
Distributes a static list of entities evenly over a cluster, ensuring that they are all continuously active.
This uses cluster sharding underneath, using a scheduled tick sent to each entity as a mechanism to ensure they are active.
Entities are cluster sharding entities, so they can discover their ID by inspecting their name. Additionally, entities should handle the com.lightbend.lagom.internal.persistence.cluster.ClusterDistribution.EnsureActive message, typically they can do nothing in response to it.