java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.tunnel.pool.TunnelPoolManager.DelayedPoolCleanup
All Implemented Interfaces:
Runnable
Enclosing class:
TunnelPoolManager

private class TunnelPoolManager.DelayedPoolCleanupextends SimpleTimer2.TimedEvent
Delayed cleanup task for pool removal. Allows tunnels to continue operating until they naturally expire.
  • Field Details

    • _destination

      private final Hash _destination
      The client whose pools are being cleaned up.
    • _cancelled

      private volatile boolean _cancelled
      Set to skip the cleanup.
  • Constructor Details

    • DelayedPoolCleanup

      public DelayedPoolCleanup(Hash dest)
      Remove an unused client pool after the re-registration window expires.
      Parameters:
      dest - the destination of the pool to remove
  • Method Details

    • cancelCleanup

      public void cancelCleanup()
      Mark this cleanup as cancelled.
    • timeReached

      public void timeReached()
      Remove the pool if the client did not re-register.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent