Package net.i2p.router.tunnel.pool
Class PooledTunnelCreatorConfig
java.lang.Object
net.i2p.router.tunnel.TunnelCreatorConfig
net.i2p.router.tunnel.pool.PooledTunnelCreatorConfig
- All Implemented Interfaces:
TunnelInfo
class PooledTunnelCreatorConfig extends TunnelCreatorConfig
Data about a tunnel we created
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)
Creates a new instance of PooledTunnelCreatorConfig -
Method Summary
Modifier and Type Method Description Properties
getOptions()
TunnelPool
getTunnelPool()
void
testJobSuccessful(int ms)
called from TestJobboolean
tunnelFailed()
The tunnel failed a test, so (maybe) stop using itMethods inherited from class net.i2p.router.tunnel.TunnelCreatorConfig
getAESReplyIV, getAESReplyKey, getBlankHash, getChaChaReplyAD, getChaChaReplyKey, getConfig, getDestination, getEndpoint, getExpiration, getFarEnd, getGateway, getLength, getPeer, getPriority, getProcessedMessagesCount, getReceiveTunnelId, getReplyMessageId, getReplyOrder, getSendTunnelId, getTunnelFailed, getTunnelFailures, getVerifiedBytesTransferred, incrementProcessedMessages, incrementVerifiedBytesTransferred, isEC, isInbound, setAESReplyKeys, setBlankHash, setChaChaReplyKeys, setExpiration, setPeer, setPriority, setReplyMessageId, setReplyOrder, setReused, testSuccessful, toString, wasReused
-
Constructor Details
-
PooledTunnelCreatorConfig
public PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination, TunnelPool pool)Creates a new instance of PooledTunnelCreatorConfig- Parameters:
destination
- may be nullpool
- non-null
-
-
Method Details
-
testJobSuccessful
public void testJobSuccessful(int ms)called from TestJob -
tunnelFailed
public boolean tunnelFailed()The tunnel failed a test, so (maybe) stop using it- Overrides:
tunnelFailed
in classTunnelCreatorConfig
-
getOptions
- Overrides:
getOptions
in classTunnelCreatorConfig
- Returns:
- non-null
-
getTunnelPool
- Returns:
- non-null
-