java.lang.Object
net.i2p.client.streaming.impl.SchedulerChooser.NullScheduler
All Implemented Interfaces:
TaskScheduler
Enclosing class:
SchedulerChooser

private class SchedulerChooser.NullSchedulerextends Object implements TaskScheduler
A scheduler that drops every task.
  • Constructor Details

    • NullScheduler

      private NullScheduler()
      A scheduler that runs nothing, used as a placeholder.
  • Method Details

    • eventOccurred

      public void eventOccurred(Connection con)
      Description copied from interface: TaskScheduler
      An event has occurred (timeout, message sent, or message received), so schedule what to do next based on our current state.
      Specified by:
      eventOccurred in interface TaskScheduler
      Parameters:
      con - the connection on which the event occurred
    • accept

      public boolean accept(Connection con)
      Description copied from interface: TaskScheduler
      Determine whether this scheduler is fit to operate against the given connection.
      Specified by:
      accept in interface TaskScheduler
      Parameters:
      con - the connection to check
      Returns:
      true if this scheduler should handle the connection