Top Description Methods
io.netty5.resolver.dns

public Interface DnsCacheEntry

Known Direct Implementers
io.netty5.resolver.dns.DefaultDnsCache.DefaultDnsCacheEntry, io.netty5.resolver.dns.NoopDnsCache.NoopDnsCacheEntry
Imports
java.net.InetAddress

Represents the results from a previous DNS query which can be cached.

Method Summary

Modifier and TypeMethod and Description
public InetAddress

Returns:

the resolved address.
address
()

Get the resolved address.

public Throwable

Returns:

the rational for why the DNS query failed, or null if the query hasn't failed.
cause
()

If the DNS query failed this will provide the rational.

Method Detail

addressback to summary
public InetAddress address()

Get the resolved address.

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

Returns:InetAddress

the resolved address.

causeback to summary
public Throwable cause()

If the DNS query failed this will provide the rational.

Returns:Throwable

the rational for why the DNS query failed, or null if the query hasn't failed.