java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.Blocklist.ReadinJob
All Implemented Interfaces:
Job
Enclosing class:
Blocklist

private class Blocklist.ReadinJobextends JobImpl
Reads the blocklist files into memory.
  • Field Details

  • Constructor Details

    • ReadinJob

      public ReadinJob(List<Blocklist.BLFile> files)
      Creates the job that reads blocklist files at startup.
      Parameters:
      files - not necessarily existing, but avoid dups
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Job
      Descriptive name of the task.
      Returns:
      the descriptive name of the task
    • runJob

      public void runJob()
      Description copied from interface: Job
      Actually perform the task. This call blocks until the Job is complete.
    • process

      private int process()
      Reads the blocklist files and counts the entries.
      Returns:
      the number of entries read