Class Cache.Entries
java.lang.Object
java.util.concurrent.atomic.AtomicReference<java.util.List<E>>
io.netty.resolver.dns.Cache.Entries
- All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable
private final class Cache.Entries
extends java.util.concurrent.atomic.AtomicReference<java.util.List<E>>
implements java.lang.Runnable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) java.util.concurrent.ScheduledFuture<?> private final java.lang.String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) booleanvoidrun()private voidscheduleCacheExpirationIfNeeded(int ttl, EventLoop loop) Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
hostname
private final java.lang.String hostname -
expirationFuture
volatile java.util.concurrent.ScheduledFuture<?> expirationFuture
-
-
Constructor Details
-
Entries
Entries(java.lang.String hostname)
-
-
Method Details
-
add
-
scheduleCacheExpirationIfNeeded
-
clearAndCancel
boolean clearAndCancel() -
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-