public class PooledTunnelCreatorConfig extends TunnelCreatorConfig
_context, 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 |
---|---|
Properties |
getOptions() |
TunnelId |
getPairedGW()
The ID of the gateway of the paired tunnel used to send/receive the build request
|
TunnelPool |
getTunnelPool() |
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.
|
getAESReplyIV, getAESReplyKey, getBlankHash, getChaChaReplyAD, getChaChaReplyKey, getConfig, getDestination, getEndpoint, getExpiration, getFarEnd, getGarlicReplyKeys, getGateway, getLength, getPeer, getPriority, getProcessedMessagesCount, getReceiveTunnelId, getReplyMessageId, getReplyOrder, getSendTunnelId, getTunnelFailed, getTunnelFailures, getVerifiedBytesTransferred, incrementProcessedMessages, incrementVerifiedBytesTransferred, isEC, isInbound, setAESReplyKeys, setBlankHash, setChaChaReplyKeys, setExpiration, setGarlicReplyKeys, setPeer, setPriority, setReplyMessageId, setReplyOrder, setReused, testSuccessful, toString, toStringFull, tunnelFailedCompletely, wasReused
public PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)
destination
- may be nullpool
- non-nullpublic void testJobSuccessful(int ms)
public boolean tunnelFailed()
tunnelFailed
in class TunnelCreatorConfig
public void tunnelFailedFirstHop()
public Properties getOptions()
getOptions
in class TunnelCreatorConfig
public TunnelPool getTunnelPool()
public void setPairedGW(TunnelId gw)
gw
- for paired inbound, the GW rcv tunnel ID; for paired outbound, the GW send tunnel ID.public TunnelId getPairedGW()