class TunnelGatewayPumper extends Object implements Runnable
| Constructor and Description |
|---|
TunnelGatewayPumper(RouterContext ctx)
Creates a new TunnelGatewayPumper and starts configured number of pump threads.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Primary thread run loop.
|
void |
stopPumping()
Requests a graceful stop for pump threads.
|
void |
wantsPumping(PumpedTunnelGateway gw)
Adds a PumpedTunnelGateway to be pumped, blocking if queue is full.
|
public TunnelGatewayPumper(RouterContext ctx)
ctx - the router contextpublic void run()
public void stopPumping()
public void wantsPumping(PumpedTunnelGateway gw)
gw - the gateway to pump