Package io.grpc
Class NameResolver.ResolutionResult
java.lang.Object
io.grpc.NameResolver.ResolutionResult
- Enclosing class:
NameResolver
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770")
public static final class NameResolver.ResolutionResult
extends Object
Represents the results from a Name Resolver.
- Since:
- 1.21.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
Useful for testing.Deprecated.Will be superseded by getAddressesOrErrorGets the addresses resolved by name resolution or the error in doing so.Gets the attributes associated with the addresses resolved by name resolution.Gets the Service Config parsed byNameResolver.Args.getServiceConfigParser()
.int
hashCode()
Useful for testing.Constructs a new builder of a name resolution result.Converts these results back to a builder.toString()
-
Method Details
-
newBuilder
Constructs a new builder of a name resolution result.- Since:
- 1.21.0
-
toBuilder
Converts these results back to a builder.- Since:
- 1.21.0
-
getAddresses
Deprecated.Will be superseded by getAddressesOrErrorGets the addresses resolved by name resolution.- Since:
- 1.21.0
-
getAddressesOrError
Gets the addresses resolved by name resolution or the error in doing so.- Since:
- 1.65.0
-
getAttributes
Gets the attributes associated with the addresses resolved by name resolution. If there are no attributes,Attributes.EMPTY
will be returned.- Since:
- 1.21.0
-
getServiceConfig
Gets the Service Config parsed byNameResolver.Args.getServiceConfigParser()
.- Since:
- 1.21.0
-
toString
-
equals
Useful for testing. May be slow to calculate. -
hashCode
public int hashCode()Useful for testing. May be slow to calculate.
-