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() |
TunnelId | getPairedGW()The ID of the gateway of the paired tunnel used to send/receive the build request |
TunnelPool | getTunnelPool() |
boolean | isLastResort() |
boolean | isRecentlyActive() |
void | recordActivity()Record activity on this tunnel (message processed). |
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, getLastTransferred, getLength, getPeer, getPriority, getProcessedMessagesCount, getReceiveTunnelId, getRecentTestExemptions, getReplyMessageId, getReplyOrder, getSendTunnelId, getTestStatus, getTunnelFailed, getTunnelFailures, getVerifiedBytesTransferred, hasEnoughLatencyTests, incrementProcessedMessages, incrementRecentTestExemptions, incrementTestFailures, incrementVerifiedBytesTransferred, isEC, isInbound, needsExpeditedTest, 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()
getOptions in class TunnelCreatorConfigpublic TunnelId getPairedGW()
public TunnelPool getTunnelPool()
public boolean isLastResort()
public boolean isRecentlyActive()
public void recordActivity()
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()