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

private class ParticipatingThrottler.Cleanerextends SimpleTimer2.TimedEvent
Periodic timer event that clears the participation counts to reset throttling. Reschedules itself each run so the counter is cleared every CLEAN_TIME; without the reschedule the counter would clear only once then grow unbounded, leaking memory and eventually banning peers on stale accumulated counts.
  • Constructor Details

    • Cleaner

      public Cleaner()
      Periodically clear the burst counter.
  • Method Details