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 String
PROP_AVAIL_BW
(package private) static String
PROP_MAX_BW
(package private) static String
PROP_MIN_BW
(package private) static String
PROP_REQ_BW
(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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec)
Send out a build request message.
-
-
-
Field Detail
-
REQUEST_TIMEOUT
static final 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. 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.
-
PROP_MIN_BW
static final String PROP_MIN_BW
- See Also:
- Constant Field Values
-
PROP_REQ_BW
static final String PROP_REQ_BW
- See Also:
- Constant Field Values
-
PROP_MAX_BW
static final String PROP_MAX_BW
- See Also:
- Constant Field Values
-
PROP_AVAIL_BW
static final String PROP_AVAIL_BW
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-