package cluster
- Alphabetic
- Public
- All
Type Members
-
class
ClusterDistribution extends Extension
Distributes a static list of entities evenly over a cluster, ensuring that they are all continuously active.
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.cluster.ClusterDistribution.EnsureActive message, typically they can do nothing in response to it.
-
case class
ClusterDistributionSettings(clusterShardingSettings: ClusterShardingSettings, ensureActiveInterval: FiniteDuration) extends Product with Serializable
Settings for cluster distribution.
Settings for cluster distribution.
- clusterShardingSettings
The cluster sharding settings.
- ensureActiveInterval
The interval at which entities are ensured to be active.
Value Members
- object ClusterDistribution extends ExtensionId[ClusterDistribution] with ExtensionIdProvider
- object ClusterDistributionSettings extends Serializable