@UnstableApi public final class DnsCacheEntry extends java.lang.Object
DnsCache
.Modifier and Type | Field and Description |
---|---|
private java.net.InetAddress |
address |
private java.lang.Throwable |
cause |
private ScheduledFuture<?> |
expirationFuture |
private java.lang.String |
hostname |
Constructor and Description |
---|
DnsCacheEntry(java.lang.String hostname,
java.net.InetAddress address) |
DnsCacheEntry(java.lang.String hostname,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
address() |
(package private) void |
cancelExpiration() |
java.lang.Throwable |
cause() |
java.lang.String |
hostname() |
(package private) void |
scheduleExpiration(EventLoop loop,
java.lang.Runnable task,
long delay,
java.util.concurrent.TimeUnit unit) |
java.lang.String |
toString() |
private final java.lang.String hostname
private final java.net.InetAddress address
private final java.lang.Throwable cause
private volatile ScheduledFuture<?> expirationFuture
public DnsCacheEntry(java.lang.String hostname, java.net.InetAddress address)
public DnsCacheEntry(java.lang.String hostname, java.lang.Throwable cause)
public java.lang.String hostname()
public java.net.InetAddress address()
public java.lang.Throwable cause()
void scheduleExpiration(EventLoop loop, java.lang.Runnable task, long delay, java.util.concurrent.TimeUnit unit)
void cancelExpiration()
public java.lang.String toString()
toString
in class java.lang.Object