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 TypeMethodDescriptionbooleanUseful for testing.Gets the addresses resolved by name resolution.Gets the attributes associated with the addresses resolved by name resolution.Gets the Service Config parsed byNameResolver.Args.getServiceConfigParser().inthashCode()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
Gets the addresses resolved by name resolution.- Since:
- 1.21.0
-
getAttributes
Gets the attributes associated with the addresses resolved by name resolution. If there are no attributes,Attributes.EMPTYwill 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.
-