java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
org.klomp.snark.SnarkManager.DestCycleRestart
All Implemented Interfaces:
Runnable
Enclosing class:
SnarkManager

private class SnarkManager.DestCycleRestartextends SimpleTimer2.TimedEvent
Restart the torrents that were running when the cycle fired, once the stop-all's Disconnector has closed the old session, so the new session - and with it the new destinations - is created on start. Multi-dest pools restart in random order with the startup stagger.
  • Field Details

    • _running

      private final List<Snark> _running
      The torrents to restart.
  • Constructor Details

    • DestCycleRestart

      public DestCycleRestart(List<Snark> running)
      Restarts the torrents sharing a cycled destination.
      Parameters:
      running - the torrents to restart
  • 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