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
Enclosing class:
Cache<E>

private final class Cache.Entries extends java.util.concurrent.atomic.AtomicReference<java.util.List<E>> implements java.lang.Runnable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) java.util.concurrent.ScheduledFuture<?>
     
    private final java.lang.String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entries(java.lang.String hostname)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    add(E e, int ttl, EventLoop loop)
     
    (package private) boolean
     
    void
    run()
     
    private void
     

    Methods inherited from class java.util.concurrent.atomic.AtomicReference

    accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSet

    Methods 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

      void add(E e, int ttl, EventLoop loop)
    • scheduleCacheExpirationIfNeeded

      private void scheduleCacheExpirationIfNeeded(int ttl, EventLoop loop)
    • clearAndCancel

      boolean clearAndCancel()
    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable