java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade.BatchedSearchTimeoutProcessor
All Implemented Interfaces:
Runnable
Enclosing class:
FloodfillNetworkDatabaseFacade

private class FloodfillNetworkDatabaseFacade.BatchedSearchTimeoutProcessorextends SimpleTimer2.TimedEvent
Batched job that processes all search timeouts periodically. Instead of having thousands of individual IterativeTimeoutJob in the queue, we have a single job that processes all elapsed timeouts. Runs via SimpleTimer2 instead of JobQueue to avoid duplicate execution issues.
  • Constructor Details

    • BatchedSearchTimeoutProcessor

      public BatchedSearchTimeoutProcessor()
      Schedule the processor with a 2-second initial delay.
  • Method Details

    • timeReached

      public void timeReached()
      Process all elapsed search timeouts and reschedule.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent
    • getName

      public String getName()
      Job name for the job queue display.
      Returns:
      the name of the job