Class GrpclbConfig


  • final class GrpclbConfig
    extends java.lang.Object
    • Field Detail

      • serviceName

        @Nullable
        private final java.lang.String serviceName
      • fallbackTimeoutMs

        private final long fallbackTimeoutMs
    • Constructor Detail

      • GrpclbConfig

        private GrpclbConfig​(GrpclbState.Mode mode,
                             @Nullable
                             java.lang.String serviceName,
                             long fallbackTimeoutMs)
    • Method Detail

      • getFallbackTimeoutMs

        long getFallbackTimeoutMs()
      • getServiceName

        @Nullable
        java.lang.String getServiceName()
        If specified, it overrides the name of the service name to be sent to the balancer. if not, the target to be sent to the balancer will continue to be obtained from the target URI passed to the gRPC client channel.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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