Class ShardingQueries.ShardsQueryResult<B>
java.lang.Object
org.apache.pekko.cluster.sharding.ShardingQueries.ShardsQueryResult<B>
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Enclosing class:
- ShardingQueries
public static final class ShardingQueries.ShardsQueryResult<B>
extends Object
implements scala.Product, Serializable
INTERNAL API
The result of a group query and metadata.
param: failed the queries to shards that failed or did not reply within the configured
timeout. This could be indicative of several states, for example still
in initialization, restart, heavily loaded and busy, where returning
zero entities is not indicative of the reason
param: responses the responses received from the query
param: total the total number of shards tracked versus a possible subset
param: timeout the timeout used to query the shards per region, for reporting metadata
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShardsQueryResult(scala.collection.immutable.Set<String> failed, scala.collection.immutable.Seq<B> responses, int total, scala.concurrent.duration.FiniteDuration timeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(scala.collection.immutable.Set<String> failed, scala.collection.immutable.Seq<B> responses, int total, scala.concurrent.duration.FiniteDuration timeout) <B> scala.collection.immutable.Set<String><B> scala.collection.immutable.Seq<B><B> int<B> scala.concurrent.duration.FiniteDurationbooleanscala.collection.immutable.Set<String>failed()inthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>intqueried()The number of shards queried, which could equal thetotalor, be a subset if this was a retry of those that failed.scala.collection.immutable.Seq<B>scala.concurrent.duration.FiniteDurationtimeout()toString()inttotal()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
ShardsQueryResult
-
-
Method Details
-
failed
-
responses
-
total
public int total() -
timeout
public scala.concurrent.duration.FiniteDuration timeout() -
queried
public int queried()The number of shards queried, which could equal thetotalor, be a subset if this was a retry of those that failed. -
toString
-
copy
public <B> ShardingQueries.ShardsQueryResult<B> copy(scala.collection.immutable.Set<String> failed, scala.collection.immutable.Seq<B> responses, int total, scala.concurrent.duration.FiniteDuration timeout) -
copy$default$1
-
copy$default$2
public <B> scala.collection.immutable.Seq<B> copy$default$2() -
copy$default$3
public <B> int copy$default$3() -
copy$default$4
public <B> scala.concurrent.duration.FiniteDuration copy$default$4() -
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() -
equals
-