Class NoopDnsCache.NoopDnsCacheEntry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.InetAddress address  
    • Constructor Summary

      Constructors 
      Constructor Description
      NoopDnsCacheEntry​(java.net.InetAddress address)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetAddress address()
      Get the resolved address.
      java.lang.Throwable cause()
      If the DNS query failed this will provide the rational.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • address

        private final java.net.InetAddress address
    • Constructor Detail

      • NoopDnsCacheEntry

        NoopDnsCacheEntry​(java.net.InetAddress address)
    • Method Detail

      • address

        public java.net.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 java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object