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 theLoadBalancerProvider.parseLoadBalancingPolicyConfig(Map)
.- Since:
- 1.21.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancer.ResolvedAddresses.Builder
Builder forLoadBalancer.ResolvedAddresses
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<EquivalentAddressGroup>
getAddresses()
Gets the server addresses.Attributes
getAttributes()
Gets the attributes associated with these addresses.Object
getLoadBalancingPolicyConfig()
Gets the domain specific load balancing policy.int
hashCode()
static LoadBalancer.ResolvedAddresses.Builder
newBuilder()
Factory for constructing a new Builder.LoadBalancer.ResolvedAddresses.Builder
toBuilder()
Converts this back to a builder.String
toString()
-
-
-
Method Detail
-
newBuilder
public static LoadBalancer.ResolvedAddresses.Builder newBuilder()
Factory for constructing a new Builder.- Since:
- 1.21.0
-
toBuilder
public LoadBalancer.ResolvedAddresses.Builder toBuilder()
Converts this back to a builder.- Since:
- 1.21.0
-
getAddresses
public List<EquivalentAddressGroup> getAddresses()
Gets the server addresses.- Since:
- 1.21.0
-
getAttributes
@ResolutionResultAttr public Attributes getAttributes()
Gets the attributes associated with these addresses. If this was not previously set,Attributes.EMPTY
will be returned.- Since:
- 1.21.0
-
getLoadBalancingPolicyConfig
@Nullable public Object getLoadBalancingPolicyConfig()
Gets the domain specific load balancing policy. This is the config produced byLoadBalancerProvider.parseLoadBalancingPolicyConfig(Map)
.- Since:
- 1.21.0
-
-