| Constructor and Description |
|---|
BuildHandler(RouterContext ctx,
TunnelPoolManager manager,
BuildExecutor exec)BuildHandler. |
| Modifier and Type | Method and Description |
|---|---|
int | getInboundBuildQueueSize()The number of inbound build messages queued. |
static int | getMaxQueue() |
(package private) void | init()Call the same time you start the threads |
(package private) static long | pendingLookupMaxAge(long requestTimeoutMs,
long nextHopLookupTimeoutMs)How long a queued next-hop lookup may wait before it is discarded as
stale. |
void | restart() |
void | run()Thread to handle inbound requests |
static void | setMaxQueue(int val) |
void | shutdown(int numThreads)Cannot be restarted. |
public BuildHandler(RouterContext ctx, TunnelPoolManager manager, BuildExecutor exec)
public int getInboundBuildQueueSize()
public static int getMaxQueue()
void init()
static long pendingLookupMaxAge(long requestTimeoutMs,
long nextHopLookupTimeoutMs)requestTimeoutMs - the originator's build request timeout in msnextHopLookupTimeoutMs - the per-lookup timeout in mspublic void restart()
public static void setMaxQueue(int val)
public void shutdown(int numThreads)
numThreads - the number of threads to be shut down