Package net.i2p.router.tunnel.pool
Class BuildRequestor
java.lang.Object
net.i2p.router.tunnel.pool.BuildRequestor
abstract class BuildRequestor extends Object
Methods for creating Tunnel Build Messages, i.e. requests
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
REQUEST_TIMEOUT
At 10 seconds, we were receiving about 20% of replies after expiration Todo: make this variable on a per-request basis, to account for tunnel length, expl. -
Constructor Summary
Constructors Constructor Description BuildRequestor()
-
Method Summary
Modifier and Type Method Description static boolean
request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec)
Send out a build request message.
-
Field Details
-
REQUEST_TIMEOUT
static final int REQUEST_TIMEOUTAt 10 seconds, we were receiving about 20% of replies after expiration Todo: make this variable on a per-request basis, to account for tunnel length, expl. vs. client, uptime, and network conditions. Put the expiration in the PTCC. Also, we now save the PTCC even after expiration for an extended time, so can we use a successfully built tunnel anyway.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BuildRequestor
BuildRequestor()
-
-
Method Details
-
request
public static boolean request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec)Send out a build request message.- Parameters:
cfg
- ReplyMessageId must be set- Returns:
- success
-