public final class DnsNameResolverProvider
extends io.grpc.NameResolverProvider
DnsNameResolver.
It resolves a target URI whose scheme is "dns". The (optional) authority of the target
URI is reserved for the address of alternative DNS server (not implemented yet). The path of the
target URI, excluding the leading slash '/', is treated as the host name and the optional
port to be resolved by DNS. Example target URIs:
"dns:///foo.googleapis.com:8080" (using default DNS)"dns://8.8.8.8/foo.googleapis.com:8080" (using alternative DNS (not implemented
yet))"dns:///foo.googleapis.com" (without port)| Constructor and Description |
|---|
DnsNameResolverProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultScheme() |
protected boolean |
isAvailable() |
io.grpc.internal.DnsNameResolver |
newNameResolver(URI targetUri,
io.grpc.NameResolver.Args args) |
protected int |
priority() |
public io.grpc.internal.DnsNameResolver newNameResolver(URI targetUri, io.grpc.NameResolver.Args args)
newNameResolver in class io.grpc.NameResolver.Factorypublic String getDefaultScheme()
getDefaultScheme in class io.grpc.NameResolver.Factoryprotected boolean isAvailable()
isAvailable in class io.grpc.NameResolverProviderprotected int priority()
priority in class io.grpc.NameResolverProvider