@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") public static final class NameResolver.ResolutionResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NameResolver.ResolutionResult.Builder
A builder for
NameResolver.ResolutionResult . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Useful for testing.
|
List<EquivalentAddressGroup> |
getAddresses()
Gets the addresses resolved by name resolution.
|
Attributes |
getAttributes()
Gets the attributes associated with the addresses resolved by name resolution.
|
NameResolver.ConfigOrError |
getServiceConfig()
Gets the Service Config parsed by
NameResolver.Helper.parseServiceConfig(Map) . |
int |
hashCode()
Useful for testing.
|
static NameResolver.ResolutionResult.Builder |
newBuilder()
Constructs a new builder of a name resolution result.
|
NameResolver.ResolutionResult.Builder |
toBuilder()
Converts these results back to a builder.
|
String |
toString() |
public static NameResolver.ResolutionResult.Builder newBuilder()
public NameResolver.ResolutionResult.Builder toBuilder()
public List<EquivalentAddressGroup> getAddresses()
@NameResolver.ResolutionResultAttr public Attributes getAttributes()
Attributes.EMPTY
will be returned.@Nullable public NameResolver.ConfigOrError getServiceConfig()
NameResolver.Helper.parseServiceConfig(Map)
.public boolean equals(Object obj)