net.i2p.router.web.helpers

## Class NetDbCachingJob

- java.lang.Object
- - net.i2p.router.JobImpl
  - - net.i2p.router.web.helpers.NetDbCachingJob

- All Implemented Interfaces:
    Job

      public class NetDbCachingJob
      extends JobImpl

  A caching job that periodically performs: - Reverse DNS precaching for known routers - Introducer precaching for known routers Ensures: - Only one instance is ever scheduled. - Jobs don't run concurrently. - Re-schedules itself after each run.

- - ### Field Summary

    - ### Fields inherited from class net.i2p.router.JobImpl

      `_id`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NetDbCachingJob(RouterContext ctx, boolean reverseDnsEnabled, boolean introducerEnabled)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getName()` Descriptive name of the task
    `void` | `runJob()` Actually perform the task.
    `static void` | `schedule(RouterContext ctx)` Schedule this job to run periodically.

    - ### Methods inherited from class net.i2p.router.JobImpl

      `dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NetDbCachingJob

          public NetDbCachingJob(RouterContext ctx,
                                 boolean reverseDnsEnabled,
                                 boolean introducerEnabled)

  - ### Method Detail

    - #### 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.

    - #### schedule

          public static void schedule(RouterContext ctx)

      Schedule this job to run periodically. Ensures only one instance is ever scheduled.