Package org.apache.pekko.cluster.sharding.typed.javadsl
package org.apache.pekko.cluster.sharding.typed.javadsl
-
ClassDescriptionThis extension provides sharding functionality of actors in a cluster.The entity can request passivation by sending the
ClusterSharding.Passivatemessage to theActorRef[ShardCommand]that was passed in to the factory method when creating the entity.When an entity is created anActorRef[ShardCommand]is passed to the factory method.Entity<M,E> Defines how the entity should be created.Parameter tocreateBehaviorfunction inEntity.of.EntityRef<M>A reference to an sharded Entity, which allowsActorRef-like usage.The key of an entity type, thenamemust be unique.This extension runs a pre set number of actors in a cluster.Allows starting a specific Sharded Entity by its entity identifierAllows starting a specific Sharded Entity by its entity identifier