Package io.netty.resolver.dns
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 java.lang.Object implements DnsCacheEntry
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.InetAddressaddress
-
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.InetAddressaddress()Get the resolved address.java.lang.Throwablecause()If the DNS query failed this will provide the rational.java.lang.StringtoString()
-
-
-
Method Detail
-
address
public java.net.InetAddress address()
Description copied from interface:DnsCacheEntryGet the resolved address.This may be null if the resolution failed, and in that case
DnsCacheEntry.cause()will describe the failure.- Specified by:
addressin interfaceDnsCacheEntry- Returns:
- the resolved address.
-
cause
public java.lang.Throwable cause()
Description copied from interface:DnsCacheEntryIf the DNS query failed this will provide the rational.- Specified by:
causein interfaceDnsCacheEntry- Returns:
- the rational for why the DNS query failed, or
nullif the query hasn't failed.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-