java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.BuildRequestor.TunnelBuildFirstHopFailJob
- All Implemented Interfaces:
Job
- Enclosing class:
BuildRequestor
Job executed when the first hop of an outbound tunnel build fails to receive the request. Notifies the executor and updates peer profile.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PooledTunnelCreatorConfigThe tunnel whose build failed.private final BuildExecutorThe executor running the build.Constructor Summary
ConstructorsConstructorDescriptionRecords a failed first hop reply.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
_cfg
The tunnel whose build failed._exec
The executor running the build.
Constructor Details
TunnelBuildFirstHopFailJob
TunnelBuildFirstHopFailJob(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec) Records a failed first hop reply.- Parameters:
ctx- the router contextcfg- the tunnel being builtexec- the executor running the build
Method Details
getName
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.