class TunnelParticipant extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static int | DEFAULT_BW_PER_TUNNEL_ESTIMATEDefault bandwidth per tunnel estimate. |
| Constructor and Description |
|---|
TunnelParticipant(RouterContext ctx,
HopConfig config,
HopProcessor processor)For intermediate tunnel participant (not endpoint). |
TunnelParticipant(RouterContext ctx,
InboundEndpointProcessor inEndProc)For inbound tunnel endpoints. |
| Modifier and Type | Method and Description |
|---|---|
void | dispatch(TunnelDataMessage msg,
Hash recvFrom)Process an incoming tunnel data message. |
int | getCompleteCount()The number of completed fragmented messages. |
long | getExpiration()When the tunnel expires, or -1 if unknown. |
int | getFailedCount()The number of failed fragmented messages. |
String | toString()Description of the participant role and its config. |
static final int DEFAULT_BW_PER_TUNNEL_ESTIMATE
public TunnelParticipant(RouterContext ctx, HopConfig config, HopProcessor processor)
public TunnelParticipant(RouterContext ctx, InboundEndpointProcessor inEndProc)
public void dispatch(TunnelDataMessage msg, Hash recvFrom)
public int getCompleteCount()
public long getExpiration()
public int getFailedCount()