class BuildExecutor extends Object implements Runnable
Constructor and Description |
---|
BuildExecutor(RouterContext ctx,
TunnelPoolManager mgr) |
Modifier and Type | Method and Description |
---|---|
void |
buildComplete(PooledTunnelCreatorConfig cfg,
TunnelPool pool)
This wakes up the executor, so call this after TunnelPool.addTunnel()
so we don't build too many.
|
void |
buildSuccessful(PooledTunnelCreatorConfig cfg) |
(package private) void |
buildTunnel(TunnelPool pool,
PooledTunnelCreatorConfig cfg) |
boolean |
isRunning() |
(package private) PooledTunnelCreatorConfig |
removeFromBuilding(long id)
This returns the PTCC up to a minute after it 'expired', thus allowing us to
still use a tunnel if it was accepted, and to update peer stats.
|
void |
repoll() |
void |
restart() |
void |
run() |
void |
shutdown()
Cannot be restarted.
|
boolean |
wasRecentlyBuilding(long replyId) |
public BuildExecutor(RouterContext ctx, TunnelPoolManager mgr)
public void restart()
public void shutdown()
public boolean isRunning()
void buildTunnel(TunnelPool pool, PooledTunnelCreatorConfig cfg)
public void buildComplete(PooledTunnelCreatorConfig cfg, TunnelPool pool)
public boolean wasRecentlyBuilding(long replyId)
public void buildSuccessful(PooledTunnelCreatorConfig cfg)
public void repoll()
PooledTunnelCreatorConfig removeFromBuilding(long id)