java.lang.Runnable
class BuildExecutor
extends java.lang.Object
implements java.lang.Runnable
コンストラクタ | 説明 |
---|---|
BuildExecutor(RouterContext ctx,
TunnelPoolManager mgr) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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 void run()
run
インタフェース内 java.lang.Runnable
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)