Package io.grpc
Class LoadBalancer.ResolvedAddresses
java.lang.Object
io.grpc.LoadBalancer.ResolvedAddresses
- Enclosing class:
LoadBalancer
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771")
public static final class LoadBalancer.ResolvedAddresses
extends Object
Represents a combination of the resolved server address, associated attributes and a load
balancing policy config. The config is from the
LoadBalancerProvider.parseLoadBalancingPolicyConfig(Map)
.- Since:
- 1.21.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<EquivalentAddressGroup> private final Attributes
private final Object
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ResolvedAddresses
(List<EquivalentAddressGroup> addresses, Attributes attributes, Object loadBalancingPolicyConfig) -
Method Summary
-
Field Details
-
addresses
-
attributes
-
loadBalancingPolicyConfig
-
-
Constructor Details
-
ResolvedAddresses
private ResolvedAddresses(List<EquivalentAddressGroup> addresses, @ResolutionResultAttr Attributes attributes, Object loadBalancingPolicyConfig)
-
-
Method Details
-
newBuilder
Factory for constructing a new Builder.- Since:
- 1.21.0
-
toBuilder
Converts this back to a builder.- Since:
- 1.21.0
-
getAddresses
Gets the server addresses.- Since:
- 1.21.0
-
getAttributes
Gets the attributes associated with these addresses. If this was not previously set,Attributes.EMPTY
will be returned.- Since:
- 1.21.0
-
getLoadBalancingPolicyConfig
Gets the domain specific load balancing policy. This is the config produced byLoadBalancerProvider.parseLoadBalancingPolicyConfig(Map)
.- Since:
- 1.21.0
-
toString
-
hashCode
public int hashCode() -
equals
-