java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.peermanager.PeerManager.Reorg
All Implemented Interfaces:
Runnable
Enclosing class:
PeerManager

private class PeerManager.Reorgextends SimpleTimer2.TimedEvent
Timer reorganizing the peer profiles.
  • Constructor Details

    • Reorg

      public Reorg()
      Create the timer event for periodic profile reorganization.
  • Method Details

    • timeReached

      public void timeReached()
      Start a reorg thread when the timer fires.

      A fresh thread per fire: a Thread cannot be restarted once it has terminated, so reusing one and guarding on isAlive() throws IllegalThreadStateException from the second fire onward and stops profile reorganization for the life of the router. One thread object every 30-250s is not worth that.

      Specified by:
      timeReached in class SimpleTimer2.TimedEvent