public class PooledTunnelCreatorConfig extends TunnelCreatorConfig
_context, MAX_CONSECUTIVE_TEST_FAILURES, REPLY_IV_LENGTH| Constructor and Description |
|---|
PooledTunnelCreatorConfig(RouterContext ctx,
int length,
boolean isInbound,
Hash destination,
TunnelPool pool)Creates a new instance of PooledTunnelCreatorConfig |
| Modifier and Type | Method and Description |
|---|---|
long | getLastActivity() |
Properties | getOptions()The tunnel pool options. |
TunnelId | getPairedGW()The ID of the gateway of the paired tunnel used to send/receive the build request |
TunnelPool | getTunnelPool() |
boolean | isBypassPacing() |
boolean | isLastResort() |
boolean | isRecentlyActive() |
void | recordActivity()Record activity on this tunnel (message processed). |
void | setBypassPacing()Mark this build as emergency recovery: it must be sent even if the
first-hop peer already has a build in flight. |
void | setLastResort()Mark this tunnel as a last-resort fallback. |
void | setPairedGW(TunnelId gw)The ID of the gateway of the paired tunnel used to send/receive the build request |
void | testJobSuccessful(int ms)Called from TestJob. |
boolean | tunnelFailed()The tunnel failed a test, so (maybe) stop using it |
void | tunnelFailedFirstHop()We failed to contact the first hop for an outbound tunnel,
so immediately stop using it. |
addLatencySample, clearExpeditedTest, clearTestFailures, getAESReplyIV, getAESReplyKey, getAverageLatency, getBlankHash, getChaChaReplyAD, getChaChaReplyKey, getConfig, getConsecutiveFailures, getDestination, getDestinationNickname, getEndpoint, getExpiration, getFarEnd, getGarlicReplyKeys, getGateway, getLastLatency, getLastRealTraffic, getLastTransferred, getLength, getPeer, getPriority, getProcessedMessagesCount, getReceiveTunnelId, getRecentTestExemptions, getReplyMessageId, getReplyOrder, getSendTunnelId, getTestStatus, getTunnelFailed, getTunnelFailures, getVerifiedBytesTransferred, hasEnoughLatencyTests, incrementProcessedMessages, incrementRecentTestExemptions, incrementTestFailures, incrementVerifiedBytesTransferred, isEC, isInbound, needsExpeditedTest, recordRealTraffic, requestExpeditedTest, setAESReplyKeys, setBlankHash, setChaChaReplyKeys, setDestinationNickname, setExpiration, setGarlicReplyKeys, setLastLatency, setPeer, setPriority, setReplyMessageId, setReplyOrder, setReused, setTestFailed, setTestOverBudget, setTestStarted, setTestTooSlow, testSuccessful, toString, toStringFull, tunnelFailedCompletely, wasReusedpublic PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)
destination - may be nullpool - non-nullpublic long getLastActivity()
public Properties getOptions()
TunnelCreatorConfiggetOptions in class TunnelCreatorConfigpublic TunnelId getPairedGW()
public TunnelPool getTunnelPool()
public boolean isBypassPacing()
BuildExecutor.buildTunnel(net.i2p.router.tunnel.pool.PooledTunnelCreatorConfig)public boolean isLastResort()
public boolean isRecentlyActive()
public void recordActivity()
public void setBypassPacing()
public void setLastResort()
public void setPairedGW(TunnelId gw)
gw - for paired inbound, the GW rcv tunnel ID; for paired outbound, the GW send tunnel ID.public void testJobSuccessful(int ms)
public boolean tunnelFailed()
tunnelFailed in class TunnelCreatorConfigpublic void tunnelFailedFirstHop()
tunnelFailedFirstHop in class TunnelCreatorConfig