java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.FloodOnlyLookupTimeoutJob
- All Implemented Interfaces:
Job
Timeout handler for flood-only search operations.
Triggers search failure when the overall search timeout expires. Used by FloodOnlySearchJob to enforce total time limits and ensure searches don't run indefinitely without resolution.
This complements the per-peer timeout mechanisms by providing a search-wide timeout boundary.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionRemembers the flood search to fail on timeout.Method Summary
All MethodsMethods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_search
The search this timeout belongs to.
Constructor Details
FloodOnlyLookupTimeoutJob
Remembers the flood search to fail on timeout.- Parameters:
ctx- router context, passed to the JobImpl superclassjob- flood search to fail when the overall lookup timeout expires
Method Details
runJob
public void runJob()Fail the search job when the lookup times out.getName
Name of this job.- Returns:
- the fixed descriptive name
"Timeout NetDb FloodSearch"of this job