java.lang.Object
net.i2p.client.streaming.impl.SchedulerImpl
All Implemented Interfaces:
TaskScheduler
Direct Known Subclasses:
SchedulerClosed, SchedulerClosing, SchedulerConnectedBulk, SchedulerConnecting, SchedulerDead, SchedulerHardDisconnected, SchedulerPreconnect, SchedulerReceived

abstract class SchedulerImplextends Object implements TaskScheduler
Base class for connection state schedulers. Provides common utilities for rescheduling events and logging.
  • Field Details

    • _context

      protected final I2PAppContext _context
      Application context the scheduled connections live in.
    • _log

      protected final Log _log
      Logger scoped to this scheduler class.
  • Constructor Details

    • SchedulerImpl

      public SchedulerImpl(I2PAppContext ctx)
      Create a new scheduler with the given context.
      Parameters:
      ctx - the application context
  • Method Details

    • reschedule

      protected void reschedule(long msToWait, Connection con)
      Schedule a connection event to occur after the specified delay.
      Parameters:
      msToWait - the delay in milliseconds
      con - the connection to reschedule
    • toString

      public String toString()
      Name of the scheduler class.
      Overrides:
      toString in class Object