java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.pool.BuildHandler.TunnelBuildNextHopFailJob
All Implemented Interfaces:
Job
Enclosing class:
BuildHandler

private static class BuildHandler.TunnelBuildNextHopFailJobextends JobImpl
Remove the participating tunnel if we can't contact the next hop Not strictly necessary, as the entry doesn't use that much space, but it affects capacity calculations.
  • Field Details

    • _cfg

      private final HopConfig _cfg
      The hop whose build failed.
  • Constructor Details

    • TunnelBuildNextHopFailJob

      private TunnelBuildNextHopFailJob(RouterContext ctx, HopConfig cfg)
      Creates the job reporting a next-hop failure.
      Parameters:
      ctx - the router reporting it
      cfg - the hop that failed
  • Method Details

    • getName

      public String getName()
      The name of this job.
      Returns:
      the job name used for logging and identification
    • runJob

      public void runJob()
      Remove the participating tunnel when the next hop cannot be contacted.
    • countReplied

      void countReplied()
      Record a successful reply to an inbound build request we handled. Pairs with BuildHandler.countNextHopOutcome(int, Log, long) so the hop-contact failure rate is visible without grepping DEBUG.