Class GetShardRegionState
java.lang.Object
org.apache.pekko.cluster.sharding.typed.GetShardRegionState
- All Implemented Interfaces:
Serializable,ClusterShardingQuery,scala.Equals,scala.Product
public final class GetShardRegionState
extends Object
implements ClusterShardingQuery, scala.Product, Serializable
Query the ShardRegion state for the given entity type key. This will get the state of the
local ShardRegion's state.
Intended for testing purpose to see when cluster sharding is "ready" or to monitor the state of the shard regions.
For the statistics for the entire cluster, see GetClusterShardingStats.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetShardRegionState(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) Java APIGetShardRegionState(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) -
Method Summary
Modifier and TypeMethodDescriptionstatic GetShardRegionStateapply(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) booleancopy(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState>booleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState>replyTo()toString()static scala.Option<scala.Tuple2<EntityTypeKey<?>,ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState>>> Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
GetShardRegionState
public GetShardRegionState(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) -
GetShardRegionState
public GetShardRegionState(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) Java APIQuery the ShardRegion state for the given entity type key. This will get the state of the local ShardRegion's state.
-
-
Method Details
-
apply
public static GetShardRegionState apply(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) -
unapply
public static scala.Option<scala.Tuple2<EntityTypeKey<?>,ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState>>> unapply(GetShardRegionState x$0) -
entityTypeKey
-
replyTo
-
copy
public GetShardRegionState copy(EntityTypeKey<?> entityTypeKey, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> replyTo) -
copy$default$1
-
copy$default$2
public ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.CurrentShardRegionState> copy$default$2() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-