class PacketPusher extends Object implements Runnable
| Constructor and Description |
|---|
PacketPusher(RouterContext ctx,
OutboundMessageFragments fragments,
List<UDPEndpoint> endpoints)
Constructs a PacketPusher instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The main loop for the packet pusher thread.
|
void |
send(UDPPacket packet)
Sends a single UDP packet directly out by selecting an appropriate UDPEndpoint.
|
void |
shutdown()
Stops the packet pusher thread.
|
void |
startup()
Starts the packet pusher thread.
|
public PacketPusher(RouterContext ctx, OutboundMessageFragments fragments, List<UDPEndpoint> endpoints)
ctx - the router context used to get the loggerfragments - the outbound message fragment pool to pull packets fromendpoints - a thread-safe or effectively immutable list of UDPEndpointspublic void run()
public void send(UDPPacket packet)
packet - the non-null UDPPacket to sendpublic void shutdown()
public void startup()