@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770") public static final class NameResolver.ResolutionResult extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
NameResolver.ResolutionResult.Builder |
A builder for
NameResolver.ResolutionResult . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
Useful for testing.
|
java.util.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.
|
java.lang.String |
toString() |
public static NameResolver.ResolutionResult.Builder newBuilder()
public NameResolver.ResolutionResult.Builder toBuilder()
public java.util.List<EquivalentAddressGroup> getAddresses()
@ResolutionResultAttr public Attributes getAttributes()
Attributes.EMPTY
will be returned.@Nullable public NameResolver.ConfigOrError getServiceConfig()
NameResolver.Helper.parseServiceConfig(Map)
.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object