Class GetClusterShardingStats
java.lang.Object
org.apache.pekko.cluster.sharding.typed.GetClusterShardingStats
- All Implemented Interfaces:
Serializable,ClusterShardingQuery,scala.Equals,scala.Product
public final class GetClusterShardingStats
extends Object
implements ClusterShardingQuery, scala.Product, Serializable
Query the statistics about the currently running sharded entities in the
entire cluster. If the given
timeout is reached without answers from all
shard regions the reply will contain an empty map of regions.
Intended for testing purpose to see when cluster sharding is "ready" or to monitor the state of the shard regions.
param: timeout the timeout applied to querying all alive regions param: replyTo the actor to send the result to
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetClusterShardingStats(EntityTypeKey<?> entityTypeKey, Duration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) Java APIGetClusterShardingStats(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) -
Method Summary
Modifier and TypeMethodDescriptionstatic GetClusterShardingStatsapply(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) booleancopy(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) scala.concurrent.duration.FiniteDurationActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats>booleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats>replyTo()scala.concurrent.duration.FiniteDurationtimeout()toString()static scala.Option<scala.Tuple3<EntityTypeKey<?>,scala.concurrent.duration.FiniteDuration, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats>>> Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
GetClusterShardingStats
public GetClusterShardingStats(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) -
GetClusterShardingStats
public GetClusterShardingStats(EntityTypeKey<?> entityTypeKey, Duration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) Java APIQuery the statistics about the currently running sharded entities in the entire cluster. If the given
timeoutis reached without answers from all shard regions the reply will contain an empty map of regions.
-
-
Method Details
-
apply
public static GetClusterShardingStats apply(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) -
unapply
public static scala.Option<scala.Tuple3<EntityTypeKey<?>,scala.concurrent.duration.FiniteDuration, unapplyActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats>>> (GetClusterShardingStats x$0) -
entityTypeKey
-
timeout
public scala.concurrent.duration.FiniteDuration timeout() -
replyTo
-
copy
public GetClusterShardingStats copy(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) -
copy$default$1
-
copy$default$2
public scala.concurrent.duration.FiniteDuration copy$default$2() -
copy$default$3
public ActorRef<org.apache.pekko.cluster.sharding.ShardRegion.ClusterShardingStats> copy$default$3() -
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
-