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

class SchedulerHardDisconnectedextends SchedulerImpl

Scheduler used after we've locally done a hard disconnect, but the final timeout hasn't passed.

Entry conditions:

  • Locally disconnected hard.
  • Less than the final timeout period has passed since the last ACK.

Events:

  • Packets received
  • RESET received
  • Message sending fails (error talking to the session)

Next states:

  • dead - after the final timeout passes
  • Constructor Details

    • SchedulerHardDisconnected

      public SchedulerHardDisconnected(I2PAppContext ctx)
      Hands the application context to the superclass.
      Parameters:
      ctx - application context the connection scheduler runs under
  • Method Details

    • accept

      public boolean accept(Connection con)
      Accept connections that have been locally hard disconnected or sent a RESET, and the final timeout hasn't passed.
      Parameters:
      con - the connection to check
      Returns:
      true if the connection is in the hard disconnected state
    • eventOccurred

      public void eventOccurred(Connection con)
      Handle an event on a hard-disconnected connection. No-op since timeout is handled by the simpleTimer.
      Parameters:
      con - the connection that had an event