Class Cache.Entries
- All Implemented Interfaces:
FutureListener<Object>, GenericFutureListener<Future<Object>>, Serializable, Runnable, EventListener
private final class Cache.Entries
extends AtomicReference<List<E>>
implements Runnable, FutureListener<Object>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) booleanvoidoperationComplete(Future<Object> future) Invoked when the operation associated with theFuturehas been completed.private voidremoveIfCancelled(ScheduledFuture<?> future) voidrun()private voidscheduleCacheExpirationIfNeeded(int ttl, EventLoop loop) Methods inherited from class AtomicReference
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSet
-
Field Details
-
hostname
-
expirationFuture
-
-
Constructor Details
-
Entries
Entries(String hostname)
-
-
Method Details
-
add
-
scheduleCacheExpirationIfNeeded
-
operationComplete
Description copied from interface:GenericFutureListenerInvoked when the operation associated with theFuturehas been completed.- Specified by:
operationCompletein interfaceGenericFutureListener<Future<Object>>- Parameters:
future- the sourceFuturewhich called this callback
-
removeIfCancelled
-
clearAndCancel
boolean clearAndCancel() -
run
-