Package org.apache.pekko.cluster.sharding.typed.scaladsl
-
Interface Summary Interface Description ClusterSharding This extension provides sharding functionality of actors in a cluster.ClusterSharding.ShardCommand When an entity is created anActorRef[ShardCommand]
is passed to the factory method.EntityRef<M> A reference to an sharded Entity, which allowsActorRef
-like usage.EntityTypeKey<T> The key of an entity type, thename
must be unique.ShardedDaemonProcess This extension runs a pre set number of actors in a cluster. -
Class Summary Class Description ClusterSharding.Passivate<M> The entity can request passivation by sending theClusterSharding.Passivate
message to theActorRef[ShardCommand]
that was passed in to the factory method when creating the entity.ClusterSharding.Passivate$ ClusterSharding$ ClusterShardingSetup Can be used inpekko.actor.setup.ActorSystemSetup
when starting thepekko.actor.typed.ActorSystem
to replace the default implementation of theClusterSharding
extension.ClusterShardingSetup$ Entity<M,E> Defines how the entity should be created.Entity$ EntityContext<M> Parameter tocreateBehavior
function inEntity.apply
.EntityTypeKey$ ShardedDaemonProcess$ StartEntity Allows starting a specific Sharded Entity by its entity identifierStartEntity$ Allows starting a specific Sharded Entity by its entity identifier