Class NoopDnsCache.NoopDnsCacheEntry

java.lang.Object
io.netty.resolver.dns.NoopDnsCache.NoopDnsCacheEntry
All Implemented Interfaces:
DnsCacheEntry
Enclosing class:
NoopDnsCache

private static final class NoopDnsCache.NoopDnsCacheEntry extends Object implements DnsCacheEntry
  • Field Details

  • Constructor Details

    • NoopDnsCacheEntry

      NoopDnsCacheEntry(InetAddress address)
  • Method Details

    • address

      public InetAddress address()
      Description copied from interface: DnsCacheEntry
      Get the resolved address.

      This may be null if the resolution failed, and in that case DnsCacheEntry.cause() will describe the failure.

      Specified by:
      address in interface DnsCacheEntry
      Returns:
      the resolved address.
    • cause

      public Throwable cause()
      Description copied from interface: DnsCacheEntry
      If the DNS query failed this will provide the rational.
      Specified by:
      cause in interface DnsCacheEntry
      Returns:
      the rational for why the DNS query failed, or null if the query hasn't failed.
    • toString

      public String toString()
      Overrides:
      toString in class Object