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

private class RequestThrottler.Disconnectorextends SimpleTimer2.TimedEvent
Timer event that forces disconnection from a router after a delay.
  • Field Details

    • h

      private final Hash h
      The router to disconnect.
    • version

      private final String version
      The router's version, for the log.
  • Constructor Details

    • Disconnector

      public Disconnector(Hash h, String version)
      Prepares to disconnect one router.
      Parameters:
      h - the router to disconnect
      version - the router's version for the log
  • Method Details

    • timeReached

      public void timeReached()
      Description copied from class: SimpleTimer2.TimedEvent
      Called when this event's scheduled time arrives. Must NOT block. For periodic events, call schedule(period) at the end to self-reschedule.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent