Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,10 @@ public class InternalGrpclbConstantsAccessor {
private InternalGrpclbConstantsAccessor() {
}

/**
* Sets attribute for gRPC LB address authority.
*/
public static Attributes setLbAddrAuthorityAttr(
@EquivalentAddressGroup.Attr Attributes attrs, String authority) {
return attrs.toBuilder().set(GrpclbConstants.ATTR_LB_ADDR_AUTHORITY, authority).build();
}
public static Attributes.Key<List<EquivalentAddressGroup>> ATTR_LB_ADDRS =
GrpclbConstants.ATTR_LB_ADDRS;

/**
* Sets attribute for gRPC LB addresses.
*/
public static Attributes setLbAddrAttr(Attributes attrs, List<EquivalentAddressGroup> lbAddrs) {
return attrs.toBuilder().set(GrpclbConstants.ATTR_LB_ADDRS, lbAddrs).build();
}
@EquivalentAddressGroup.Attr
public static Attributes.Key<String> ATTR_LB_ADDR_AUTHORITY =
GrpclbConstants.ATTR_LB_ADDR_AUTHORITY;
}