Class AuthoritativeDnsServerCacheAdapter

java.lang.Object
io.netty.resolver.dns.AuthoritativeDnsServerCacheAdapter
All Implemented Interfaces:
AuthoritativeDnsServerCache

final class AuthoritativeDnsServerCacheAdapter extends java.lang.Object implements AuthoritativeDnsServerCache
AuthoritativeDnsServerCache implementation which delegates all operations to a wrapped DnsCache. This implementation is only present to preserve a upgrade story.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final DnsCache
     
    private static final DnsRecord[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cache(java.lang.String hostname, java.net.InetSocketAddress address, long originalTtl, EventLoop loop)
    Caches a nameserver that should be used to resolve the given hostname.
    void
    Clears all cached nameservers.
    boolean
    clear(java.lang.String hostname)
    Clears the cached nameservers for the specified hostname.
    get(java.lang.String hostname)
    Returns the cached nameservers that should be used to resolve the given hostname.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY

      private static final DnsRecord[] EMPTY
    • cache

      private final DnsCache cache
  • Constructor Details

    • AuthoritativeDnsServerCacheAdapter

      AuthoritativeDnsServerCacheAdapter(DnsCache cache)
  • Method Details