java.lang.Object
net.i2p.client.streaming.impl.SchedulerImpl
net.i2p.client.streaming.impl.SchedulerDead
All Implemented Interfaces:
TaskScheduler

class SchedulerDeadextends SchedulerImpl

Scheduler used for after the final timeout has passed or the connection was reset.

Entry conditions:

  • Both sides have closed and ACKed and the timeout has passed.
    or
  • A RESET was received

Events:

  • None

Next states:

  • None
  • Constructor Details

    • SchedulerDead

      public SchedulerDead(I2PAppContext ctx)
      Sets up the scheduler for connections that are finished and awaiting cleanup.
      Parameters:
      ctx - the application context passed to the superclass
  • Method Details

    • accept

      public boolean accept(Connection con)
      Accept connections where the final timeout has passed or a RESET was received.
      Parameters:
      con - the connection to check
      Returns:
      true if the connection is dead
    • eventOccurred

      public void eventOccurred(Connection con)
      Handle an event on a dead connection. Completes the disconnect.
      Parameters:
      con - the connection that had an event