Package io.netty.resolver.dns
Interface DnsCacheEntry
-
public interface DnsCacheEntry
Represents the results from a previous DNS query which can be cached.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
address
java.net.InetAddress address()
Get the resolved address.This may be null if the resolution failed, and in that case
cause()
will describe the failure.- Returns:
- the resolved address.
-
cause
java.lang.Throwable cause()
If the DNS query failed this will provide the rational.- Returns:
- the rational for why the DNS query failed, or
null
if the query hasn't failed.
-
-