Package org.apache.pekko.cluster.sharding.typed.javadsl
@NullMarked
package org.apache.pekko.cluster.sharding.typed.javadsl
Java API for Pekko Cluster Sharding Typed.
This package contains the Java DSL for Pekko Cluster Sharding Typed. For the Scala DSL see
org.apache.pekko.cluster.sharding.typed.scaladsl.
-
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