Packages that use BuildExecutor
Package
Description
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of BuildExecutor in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as BuildExecutorModifier and TypeFieldDescriptionprivate final BuildExecutorBuildHandler._execExecutor running the build requests.private final BuildExecutorBuildRequestor.TunnelBuildFirstHopFailJob._execThe executor running the build.private final BuildExecutorTunnelPoolManager._executorRuns the tunnel build requests.Methods in net.i2p.router.tunnel.pool that return BuildExecutorModifier and TypeMethodDescription(package private) BuildExecutorTunnelPoolManager.getExecutor()Return the shared thread pool that runs tunnel builds.Methods in net.i2p.router.tunnel.pool with parameters of type BuildExecutorModifier and TypeMethodDescriptionprivate static voidBuildRequestor.buildZeroHop(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec) Sends the records for a zero hop tunnel.private static TunnelBuildMessageBuildRequestor.createTunnelBuildMessage(RouterContext ctx, TunnelPool pool, PooledTunnelCreatorConfig cfg, TunnelInfo pairedTunnel, BuildExecutor exec) Creates a tunnel build message using the most efficient format supported by all hops and the local router.private static booleanBuildRequestor.handleInboundBuild(RouterContext ctx, PooledTunnelCreatorConfig cfg, TunnelInfo pairedTunnel, I2NPMessage msgIn, BuildExecutor exec, Log log) Dispatch an inbound build request through the paired tunnel, garlic-wrapping the ShortTBM when the IBGW differs from the paired tunnel's endpoint so the IBGW identity stays hidden.private static voidBuildRequestor.handleOutboundBuild(RouterContext ctx, PooledTunnelCreatorConfig cfg, TunnelInfo pairedTunnel, I2NPMessage msg, BuildExecutor exec, Log log, long firstHopTimeout) Builds and sends the records for one outbound tunnel.(package private) static booleanBuildRequestor.preConnectFallback(RouterContext ctx, Hash peer, PooledTunnelCreatorConfig cfg, BuildExecutor exec) Approach 2: Fire-and-forget fallback — attempt to establish the transport session and retry the build once.static booleanBuildRequestor.request(RouterContext ctx, PooledTunnelCreatorConfig cfg, BuildExecutor exec, long firstHopTimeout) Initiates a tunnel build request.private static TunnelInfoBuildRequestor.selectPairedTunnel(RouterContext ctx, TunnelPool pool, PooledTunnelCreatorConfig cfg, BuildExecutor exec, Log log) Selects an appropriate tunnel for sending the build reply.Constructors in net.i2p.router.tunnel.pool with parameters of type BuildExecutorModifierConstructorDescriptionBuildHandler(RouterContext ctx, TunnelPoolManager manager, BuildExecutor exec) Wires up the pool manager, executor and ban logger, and registers the tunnel build rate stats.(package private)Records a failed first hop reply.