Package io.grpc.grpclb
Class GrpclbConstants
java.lang.Object
io.grpc.grpclb.GrpclbConstants
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1782")
public final class GrpclbConstants
extends Object
Constants for the GRPCLB load-balancer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attributes.Key
<String> The naming authority of a gRPC LB server address.static final Attributes.Key
<List<EquivalentAddressGroup>> Attribute key for gRPC LB server addresses.static final Attributes.Key
<Boolean> Whether this EquivalentAddressGroup was provided by a GRPCLB server.(package private) static final Attributes.Key
<String> For passing LB tokens via the EAG attributes.static final Metadata.Key
<String> The opaque token given by the remote balancer for each returned server address. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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. -
TOKEN_ATTRIBUTE_KEY
For passing LB tokens via the EAG attributes. -
ATTR_LB_ADDRS
Attribute key for gRPC LB server addresses. -
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
Whether this EquivalentAddressGroup was provided by a GRPCLB server. It would be rare for this value to befalse
; generally it would be better to not have the key present at all.
-
-
Constructor Details
-
GrpclbConstants
private GrpclbConstants()
-