程序包 | 说明 |
---|---|
io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultDnsCache
Default implementation of
DnsCache , backed by a ConcurrentMap . |
class |
NoopDnsCache
A noop DNS cache that actually never caches anything.
|
限定符和类型 | 方法和说明 |
---|---|
DnsCache |
DnsNameResolver.resolveCache()
Returns the resolution cache.
|
限定符和类型 | 方法和说明 |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache authoritativeDnsServerCache)
|
protected void |
DnsNameResolver.doResolve(java.lang.String inetHost,
DnsRecord[] additionals,
Promise<java.net.InetAddress> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
protected void |
DnsNameResolver.doResolveAll(java.lang.String inetHost,
DnsRecord[] additionals,
Promise<java.util.List<java.net.InetAddress>> promise,
DnsCache resolveCache)
Hook designed for extensibility so one can pass a different cache on each resolution attempt
instead of using the global one.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
Sets the cache for resolution results.
|
构造器和说明 |
---|
DnsNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsCache resolveCache,
AuthoritativeDnsServerCache authoritativeDnsServerCache,
DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory,
long queryTimeoutMillis,
ResolvedAddressTypes resolvedAddressTypes,
boolean recursionDesired,
int maxQueriesPerResolve,
boolean traceEnabled,
int maxPayloadSize,
boolean optResourceEnabled,
HostsFileEntriesResolver hostsFileEntriesResolver,
DnsServerAddressStreamProvider dnsServerAddressStreamProvider,
java.lang.String[] searchDomains,
int ndots,
boolean decodeIdn)
已过时。
|
DnsNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsCache resolveCache,
DnsCache authoritativeDnsServerCache,
DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory,
long queryTimeoutMillis,
ResolvedAddressTypes resolvedAddressTypes,
boolean recursionDesired,
int maxQueriesPerResolve,
boolean traceEnabled,
int maxPayloadSize,
boolean optResourceEnabled,
HostsFileEntriesResolver hostsFileEntriesResolver,
DnsServerAddressStreamProvider dnsServerAddressStreamProvider,
java.lang.String[] searchDomains,
int ndots,
boolean decodeIdn)
已过时。
|