|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.pool.BuildHandler
class BuildHandler
Handle the received tunnel build message requests and replies, including sending responsses to requests, updating the lists of our tunnels and participating tunnels, and updating stats. Replies are handled immediately on reception; requests are queued. As of 0.8.11 the request queue is handled in a separate thread, it used to be called from the BuildExecutor thread loop. Note that 10 minute tunnel expiration is hardcoded in here.
Constructor Summary | |
---|---|
BuildHandler(RouterContext ctx,
TunnelPoolManager manager,
BuildExecutor exec)
|
Method Summary | |
---|---|
int |
getInboundBuildQueueSize()
|
(package private) void |
init()
Call the same time you start the threads |
void |
restart()
|
void |
run()
Thread to handle inbound requests |
void |
shutdown(int numThreads)
Cannot be restarted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildHandler(RouterContext ctx, TunnelPoolManager manager, BuildExecutor exec)
Method Detail |
---|
void init()
public void restart()
public void shutdown(int numThreads)
numThreads
- the number of threads to be shut downpublic void run()
run
in interface Runnable
public int getInboundBuildQueueSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |