net.i2p.router.networkdb.kademlia
Class IterativeTimeoutJob

java.lang.Object
  extended by net.i2p.router.JobImpl
      extended by net.i2p.router.networkdb.kademlia.IterativeTimeoutJob
All Implemented Interfaces:
Job

 class IterativeTimeoutJob
extends JobImpl

This is the timeout for a single lookup, not for the whole search. It is called every time, it is not cancelled after the search succeeds or the peer replies with a DSRM. We rely on ISJ.failed(peer) to decide whether or not it actually timed out.

Since:
0.8.9

Constructor Summary
IterativeTimeoutJob(RouterContext ctx, Hash peer, IterativeSearchJob job)
           
 
Method Summary
 String getName()
          Descriptive name of the task
 void runJob()
          Actually perform the task.
 
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, 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

IterativeTimeoutJob

public IterativeTimeoutJob(RouterContext ctx,
                           Hash peer,
                           IterativeSearchJob job)
Method Detail

runJob

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


getName

public String getName()
Description copied from interface: Job
Descriptive name of the task