java.lang.Object
net.i2p.router.JobQueue.PoisonJob
All Implemented Interfaces:
Job
Enclosing class:
JobQueue

private static class JobQueue.PoisonJobextends Object implements Job
Queue entry that stops the pumper.
  • Constructor Details

    • PoisonJob

      private PoisonJob()
      Sentinel job that ends a runner thread when dequeued.
  • Method Details

    • getName

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

      public long getJobId()
      Description copied from interface: Job
      Unique id for this job.
      Specified by:
      getJobId in interface Job
      Returns:
      the unique job id
    • getTiming

      public JobTiming getTiming()
      Description copied from interface: Job
      Timing criteria for the task.
      Specified by:
      getTiming in interface Job
      Returns:
      the job timing object
    • runJob

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

      public void dropped()
      Description copied from interface: Job
      The router is extremely overloaded, so this job has been dropped. If for some reason the job *must* do some cleanup / requeueing of other tasks, it should do so here.
      Specified by:
      dropped in interface Job