class BuildExecutor extends Object implements Runnable
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BuildExecutor.Result |
Constructor and Description |
---|
BuildExecutor(RouterContext ctx,
TunnelPoolManager mgr) |
Modifier and Type | Method and Description |
---|---|
void |
buildComplete(PooledTunnelCreatorConfig cfg,
BuildExecutor.Result result)
This calls TunnelPool.buildComplete which calls TunnelPool.addTunnel()
on success, and then we wake up the executor.
|
(package private) void |
buildTunnel(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(PooledTunnelCreatorConfig cfg)
public void buildComplete(PooledTunnelCreatorConfig cfg, BuildExecutor.Result result)
public boolean wasRecentlyBuilding(long replyId)
public void repoll()
PooledTunnelCreatorConfig removeFromBuilding(long id)