Class ShardingQueries.ShardsQueryResult<B>

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    ShardingQueries

    public static final class ShardingQueries.ShardsQueryResult<B>
    extends java.lang.Object
    implements scala.Product, java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ShardsQueryResult​(scala.collection.immutable.Set<java.lang.String> failed, scala.collection.immutable.Seq<B> responses, int total, scala.concurrent.duration.FiniteDuration timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEqual​(java.lang.Object x$1)  
      <B> ShardingQueries.ShardsQueryResult<B> copy​(scala.collection.immutable.Set<java.lang.String> failed, scala.collection.immutable.Seq<B> responses, int total, scala.concurrent.duration.FiniteDuration timeout)  
      <B> scala.collection.immutable.Set<java.lang.String> copy$default$1()  
      <B> scala.collection.immutable.Seq<B> copy$default$2()  
      <B> int copy$default$3()  
      <B> scala.concurrent.duration.FiniteDuration copy$default$4()  
      boolean equals​(java.lang.Object x$1)  
      scala.collection.immutable.Set<java.lang.String> failed()  
      int hashCode()  
      int productArity()  
      java.lang.Object productElement​(int x$1)  
      java.lang.String productElementName​(int x$1)  
      scala.collection.Iterator<java.lang.Object> productIterator()  
      java.lang.String productPrefix()  
      int queried()
      The number of shards queried, which could equal the total or, be a subset if this was a retry of those that failed.
      scala.collection.immutable.Seq<B> responses()  
      scala.concurrent.duration.FiniteDuration timeout()  
      java.lang.String toString()  
      int total()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

        productElementNames
    • Constructor Detail

      • ShardsQueryResult

        public ShardsQueryResult​(scala.collection.immutable.Set<java.lang.String> failed,
                                 scala.collection.immutable.Seq<B> responses,
                                 int total,
                                 scala.concurrent.duration.FiniteDuration timeout)
    • Method Detail

      • failed

        public scala.collection.immutable.Set<java.lang.String> failed()
      • responses

        public scala.collection.immutable.Seq<B> responses()
      • total

        public int total()
      • timeout

        public scala.concurrent.duration.FiniteDuration timeout()
      • queried

        public int queried()
        The number of shards queried, which could equal the total or, be a subset if this was a retry of those that failed.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • copy

        public <B> ShardingQueries.ShardsQueryResult<B> copy​(scala.collection.immutable.Set<java.lang.String> failed,
                                                             scala.collection.immutable.Seq<B> responses,
                                                             int total,
                                                             scala.concurrent.duration.FiniteDuration timeout)
      • copy$default$1

        public <B> scala.collection.immutable.Set<java.lang.String> 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

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object