java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tunnel.TunnelDispatcher.LeaveTunnel
All Implemented Interfaces:
Job
Enclosing class:
TunnelDispatcher

private class TunnelDispatcher.LeaveTunnelextends JobImpl
Job removing hops from a tunnel.
  • Field Details

  • Constructor Details

    • LeaveTunnel

      public LeaveTunnel(RouterContext ctx)
      Builds the leave tunnel job.
      Parameters:
      ctx - the router context
  • Method Details

    • add

      public void add(HopConfig cfg)
      Queues one hop to remove.
      Parameters:
      cfg - the hop config to remove
    • clear

      public void clear()
      Drops all queued hop configs.
    • remove

      public void remove(HopConfig cfg)
      Dequeues one hop config.
      Parameters:
      cfg - the hop config to drop
    • getConfigs

      public Collection<HopConfig> getConfigs()
      Returns the queued hop configs.
      Returns:
      the hops waiting to be removed
    • 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.