Class GrpclbConstants


  • @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1782")
    public final class GrpclbConstants
    extends java.lang.Object
    Constants for the GRPCLB load-balancer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.grpc.Attributes.Key<java.lang.String> ATTR_LB_ADDR_AUTHORITY
      The naming authority of a gRPC LB server address.
      static io.grpc.Attributes.Key<java.util.List<io.grpc.EquivalentAddressGroup>> ATTR_LB_ADDRS
      Attribute key for gRPC LB server addresses.
      static io.grpc.Attributes.Key<java.lang.Boolean> ATTR_LB_PROVIDED_BACKEND
      Whether this EquivalentAddressGroup was provided by a GRPCLB server.
      static io.grpc.Metadata.Key<java.lang.String> TOKEN_METADATA_KEY
      The opaque token given by the remote balancer for each returned server address.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • TOKEN_METADATA_KEY

        public static final io.grpc.Metadata.Key<java.lang.String> TOKEN_METADATA_KEY
        The opaque token given by the remote balancer for each returned server address. The client will send this token with any requests sent to the associated server.
      • ATTR_LB_ADDRS

        public static final io.grpc.Attributes.Key<java.util.List<io.grpc.EquivalentAddressGroup>> ATTR_LB_ADDRS
        Attribute key for gRPC LB server addresses.
      • ATTR_LB_ADDR_AUTHORITY

        @Attr
        public static final io.grpc.Attributes.Key<java.lang.String> ATTR_LB_ADDR_AUTHORITY
        The naming authority of a gRPC LB server address. It is an address-group-level attribute, present when the address group is a LoadBalancer.
      • ATTR_LB_PROVIDED_BACKEND

        @Attr
        public static final io.grpc.Attributes.Key<java.lang.Boolean> ATTR_LB_PROVIDED_BACKEND
        Whether this EquivalentAddressGroup was provided by a GRPCLB server. It would be rare for this value to be false; generally it would be better to not have the key present at all.