Package akka.cluster.sharding.typed
Class GetClusterShardingStats
- java.lang.Object
 - 
- akka.cluster.sharding.typed.GetClusterShardingStats
 
 
- 
- All Implemented Interfaces:
 ClusterShardingQuery,java.io.Serializable,scala.Equals,scala.Product
public final class GetClusterShardingStats extends java.lang.Object implements ClusterShardingQuery, scala.Product, java.io.Serializable
Query the statistics about the currently running sharded entities in the entire cluster. If the giventimeoutis 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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description GetClusterShardingStats(EntityTypeKey<?> entityTypeKey, java.time.Duration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)Java APIGetClusterShardingStats(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetClusterShardingStatsapply(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)booleancanEqual(java.lang.Object x$1)GetClusterShardingStatscopy(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)EntityTypeKey<?>copy$default$1()scala.concurrent.duration.FiniteDurationcopy$default$2()ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats>copy$default$3()EntityTypeKey<?>entityTypeKey()booleanequals(java.lang.Object x$1)inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats>replyTo()scala.concurrent.duration.FiniteDurationtimeout()java.lang.StringtoString()static scala.Option<scala.Tuple3<EntityTypeKey<?>,scala.concurrent.duration.FiniteDuration,ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats>>>unapply(GetClusterShardingStats x$0) 
 - 
 
- 
- 
Constructor Detail
- 
GetClusterShardingStats
public GetClusterShardingStats(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)
 
- 
GetClusterShardingStats
public GetClusterShardingStats(EntityTypeKey<?> entityTypeKey, java.time.Duration timeout, ActorRef<akka.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 Detail
- 
apply
public static GetClusterShardingStats apply(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)
 
- 
unapply
public static scala.Option<scala.Tuple3<EntityTypeKey<?>,scala.concurrent.duration.FiniteDuration,ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats>>> unapply(GetClusterShardingStats x$0)
 
- 
entityTypeKey
public EntityTypeKey<?> entityTypeKey()
 
- 
timeout
public scala.concurrent.duration.FiniteDuration timeout()
 
- 
replyTo
public ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo()
 
- 
copy
public GetClusterShardingStats copy(EntityTypeKey<?> entityTypeKey, scala.concurrent.duration.FiniteDuration timeout, ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> replyTo)
 
- 
copy$default$1
public EntityTypeKey<?> copy$default$1()
 
- 
copy$default$2
public scala.concurrent.duration.FiniteDuration copy$default$2()
 
- 
copy$default$3
public ActorRef<akka.cluster.sharding.ShardRegion.ClusterShardingStats> copy$default$3()
 
- 
productPrefix
public java.lang.String productPrefix()
- Specified by:
 productPrefixin interfacescala.Product
 
- 
productArity
public int productArity()
- Specified by:
 productArityin interfacescala.Product
 
- 
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
 productElementin interfacescala.Product
 
- 
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
 productIteratorin interfacescala.Product
 
- 
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
 canEqualin interfacescala.Equals
 
- 
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
 productElementNamein interfacescala.Product
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
 equalsin interfacescala.Equals- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -