class PacketHandler extends Object
| Constructor and Description |
|---|
PacketHandler(RouterContext ctx,
UDPTransport transport,
EstablishmentManager establisher,
InboundMessageFragments inbound,
PeerTestManager testManager,
IntroductionManager introManager) |
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
getHandlerStatus() |
(package private) boolean |
isBacklogged()
Check if the inbound queue is backlogged (near capacity or high delay).
|
void |
queueReceived(UDPPacket packet)
Blocking call to retrieve the next inbound packet, or null if we have
shut down.
|
UDPPacket |
receiveNext()
Blocking call to retrieve the next inbound packet, or null if we have
shut down.
|
void |
shutdown() |
void |
startup() |
PacketHandler(RouterContext ctx, UDPTransport transport, EstablishmentManager establisher, InboundMessageFragments inbound, PeerTestManager testManager, IntroductionManager introManager)
String getHandlerStatus()
boolean isBacklogged()
public void queueReceived(UDPPacket packet) throws InterruptedException
InterruptedExceptionpublic UDPPacket receiveNext()
public void shutdown()
public void startup()