net.i2p.router.tunnel.pool
Class TunnelBuilder

java.lang.Object
  extended bynet.i2p.router.tunnel.pool.TunnelBuilder

public class TunnelBuilder
extends java.lang.Object


Constructor Summary
TunnelBuilder()
           
 
Method Summary
 void buildTunnel(RouterContext ctx, TunnelPool pool)
          Build a new tunnel per the pool's wishes (using the preferred length, peers, ordering, etc).
 void buildTunnel(RouterContext ctx, TunnelPool pool, boolean zeroHop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelBuilder

public TunnelBuilder()
Method Detail

buildTunnel

public void buildTunnel(RouterContext ctx,
                        TunnelPool pool)
Build a new tunnel per the pool's wishes (using the preferred length, peers, ordering, etc). After the tunnel is built, it is added to the pool as well as the dispatcher, and the necessary test and maintenance jobs are built. This call does not block.


buildTunnel

public void buildTunnel(RouterContext ctx,
                        TunnelPool pool,
                        boolean zeroHop)