Package io.grpc.xds

Class RingHashLoadBalancer.RingHashConfig

  • Enclosing class:
    RingHashLoadBalancer

    static final class RingHashLoadBalancer.RingHashConfig
    extends java.lang.Object
    Configures the ring property. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long maxRingSize  
      (package private) long minRingSize  
    • Constructor Summary

      Constructors 
      Constructor Description
      RingHashConfig​(long minRingSize, long maxRingSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • minRingSize

        final long minRingSize
      • maxRingSize

        final long maxRingSize
    • Constructor Detail

      • RingHashConfig

        RingHashConfig​(long minRingSize,
                       long maxRingSize)
    • Method Detail

      • toString

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