Uses of Interface
io.netty.resolver.dns.DnsCache
Packages that use DnsCache
Package
Description
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.
-
Uses of DnsCache in io.netty.resolver.dns
Classes in io.netty.resolver.dns that implement DnsCacheModifier and TypeClassDescriptionclass
Default implementation ofDnsCache
, backed by aConcurrentMap
.final class
A noop DNS cache that actually never caches anything.Fields in io.netty.resolver.dns declared as DnsCacheModifier and TypeFieldDescriptionprivate final DnsCache
AuthoritativeDnsServerCacheAdapter.cache
private final DnsCache
DnsAddressResolveContext.resolveCache
private final DnsCache
DnsNameResolver.resolveCache
private DnsCache
DnsNameResolverBuilder.resolveCache
Methods in io.netty.resolver.dns that return DnsCacheModifier and TypeMethodDescriptionprivate DnsCache
DnsNameResolverBuilder.newCache()
(package private) DnsCache
DnsAddressResolveContext.resolveCache()
DnsNameResolver.resolveCache()
Returns the resolution cache.(package private) DnsCache
DnsResolveContext.resolveCache()
TheDnsCache
to use while resolving.Methods in io.netty.resolver.dns with parameters of type DnsCacheModifier and TypeMethodDescriptionDnsNameResolverBuilder.authoritativeDnsServerCache
(DnsCache authoritativeDnsServerCache) Deprecated.protected void
DnsNameResolver.doResolve
(String inetHost, DnsRecord[] additionals, Promise<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
(String inetHost, DnsRecord[] additionals, Promise<List<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.(package private) static boolean
DnsNameResolver.doResolveAllCached
(String hostname, DnsRecord[] additionals, Promise<List<InetAddress>> promise, DnsCache resolveCache, InternetProtocolFamily[] resolvedInternetProtocolFamilies) private void
DnsNameResolver.doResolveAllUncached
(String hostname, DnsRecord[] additionals, Promise<?> originalPromise, Promise<List<InetAddress>> promise, DnsCache resolveCache, boolean completeEarlyIfPossible) private void
DnsNameResolver.doResolveAllUncached0
(String hostname, DnsRecord[] additionals, Promise<?> originalPromise, Promise<List<InetAddress>> promise, DnsCache resolveCache, boolean completeEarlyIfPossible) private boolean
DnsNameResolver.doResolveCached
(String hostname, DnsRecord[] additionals, Promise<InetAddress> promise, DnsCache resolveCache) private void
DnsNameResolver.doResolveUncached
(String hostname, DnsRecord[] additionals, Promise<InetAddress> promise, DnsCache resolveCache, boolean completeEarlyIfPossible) (package private) void
DnsResolveContext.AuthoritativeNameServerList.handleWithoutAdditionals
(DnsNameResolver parent, DnsCache cache, AuthoritativeDnsServerCache authoritativeCache) DnsNameResolverBuilder.resolveCache
(DnsCache resolveCache) Sets the cache for resolution results.private void
DnsNameResolver.resolveNow
(String hostname, DnsRecord[] additionals, Promise<?> originalPromise, Promise<List<InetAddress>> promise, DnsCache resolveCache, boolean completeEarlyIfPossible) Constructors in io.netty.resolver.dns with parameters of type DnsCacheModifierConstructorDescription(package private)
(package private)
DnsAddressResolveContext
(DnsNameResolver parent, Channel channel, Future<? extends Channel> channelReadyFuture, Promise<?> originalPromise, String hostname, DnsRecord[] additionals, DnsServerAddressStream nameServerAddrs, int allowedQueries, DnsCache resolveCache, AuthoritativeDnsServerCache authoritativeDnsServerCache, boolean completeEarlyIfPossible) (package private)
DnsNameResolver
(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, ChannelFactory<? extends SocketChannel> socketChannelFactory, boolean retryWithTcpOnTimeout, DnsCache resolveCache, DnsCnameCache cnameCache, AuthoritativeDnsServerCache authoritativeDnsServerCache, SocketAddress localAddress, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, DnsServerAddressStream queryDnsServerAddressStream, String[] searchDomains, int ndots, boolean decodeIdn, boolean completeOncePreferredResolved, int maxNumConsolidation) 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, String[] searchDomains, int ndots, boolean decodeIdn) Deprecated.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, String[] searchDomains, int ndots, boolean decodeIdn) Deprecated.
DnsNameResolverBuilder.authoritativeDnsServerCache(AuthoritativeDnsServerCache)