public abstract class BuildRequestor extends Object
This class handles:
TunnelBuildMessage, including legacy and
new-style (Short/Variable) formatsPaired tunnels are always used (as of 0.9.50+) to improve client isolation and prevent correlation across tunnel pools.
| Modifier and Type | Field and Description |
|---|---|
(package private) static String | PROP_AVAIL_BWProposal 168 available bandwidth property key |
(package private) static String | PROP_MAX_BWProposal 168 maximum bandwidth property key |
(package private) static String | PROP_MIN_BWProposal 168 minimum bandwidth property key |
(package private) static String | PROP_REQ_BWProposal 168 required bandwidth property key |
| Modifier and Type | Method and Description |
|---|---|
static int | getFirstHopTimeout(RouterContext ctx)How long the OutNetMessage for the first hop gets before
TunnelBuildFirstHopFailJob fires. |
(package private) static int | getMaxConsecutiveClientBuildFails(RouterContext ctx)Maximum consecutive client build timeouts before forcing exploratory tunnel for replies. |
static int | getRequestTimeout(RouterContext ctx)How long we wait for a reply before trying a different pool/peers. |
static boolean | request(RouterContext ctx,
PooledTunnelCreatorConfig cfg,
BuildExecutor exec,
long firstHopTimeout)Initiates a tunnel build request. |
static final String PROP_AVAIL_BW
static final String PROP_MAX_BW
static final String PROP_MIN_BW
static final String PROP_REQ_BW
public static int getFirstHopTimeout(RouterContext ctx)
ctx - the router contextstatic int getMaxConsecutiveClientBuildFails(RouterContext ctx)
ctx - the router contextpublic static int getRequestTimeout(RouterContext ctx)
ctx - the router contextpublic static boolean request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec, long firstHopTimeout)
ctx - router contextcfg - tunnel configuration (must have ReplyMessageId set)exec - executor to notify on completionfirstHopTimeout - adaptive first-hop timeout ms (from BuildExecutor stats)true if request was successfully dispatched