Class Cache.Entries

java.lang.Object
java.util.concurrent.atomic.AtomicReference<List<E>>
io.netty.resolver.dns.Cache.Entries
All Implemented Interfaces:
Serializable, Runnable
Enclosing class:
Cache<E>

private final class Cache.Entries extends AtomicReference<List<E>> implements Runnable
  • Field Details

    • hostname

      private final String hostname
    • expirationFuture

      volatile ScheduledFuture<?> expirationFuture
  • Constructor Details

    • Entries

      Entries(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 Runnable