Package io.grpc
Class LoadBalancer.ResolvedAddresses.Builder
- java.lang.Object
-
- io.grpc.LoadBalancer.ResolvedAddresses.Builder
-
- Enclosing class:
- LoadBalancer.ResolvedAddresses
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") public static final class LoadBalancer.ResolvedAddresses.Builder extends Object
Builder forLoadBalancer.ResolvedAddresses
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancer.ResolvedAddresses
build()
Constructs theLoadBalancer.ResolvedAddresses
.LoadBalancer.ResolvedAddresses.Builder
setAddresses(List<EquivalentAddressGroup> addresses)
Sets the addresses.LoadBalancer.ResolvedAddresses.Builder
setAttributes(Attributes attributes)
Sets the attributes.LoadBalancer.ResolvedAddresses.Builder
setLoadBalancingPolicyConfig(Object loadBalancingPolicyConfig)
Sets the load balancing policy config.
-
-
-
Method Detail
-
setAddresses
public LoadBalancer.ResolvedAddresses.Builder setAddresses(List<EquivalentAddressGroup> addresses)
Sets the addresses. This field is required.- Returns:
- this.
-
setAttributes
public LoadBalancer.ResolvedAddresses.Builder setAttributes(@ResolutionResultAttr Attributes attributes)
Sets the attributes. This field is optional; if not called,Attributes.EMPTY
will be used.- Returns:
- this.
-
setLoadBalancingPolicyConfig
public LoadBalancer.ResolvedAddresses.Builder setLoadBalancingPolicyConfig(@Nullable Object loadBalancingPolicyConfig)
Sets the load balancing policy config. This field is optional.- Returns:
- this.
-
build
public LoadBalancer.ResolvedAddresses build()
Constructs theLoadBalancer.ResolvedAddresses
.
-
-