public interface PacketService
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(PacketProcessor processor,
int priority)
Adds the specified processor to the list of packet processors.
|
void |
emit(OutboundPacket packet)
Emits the specified outbound packet onto the network.
|
void |
removeProcessor(PacketProcessor processor)
Removes the specified processor from the processing pipeline.
|
void addProcessor(PacketProcessor processor, int priority)
processor - processor to be addedpriority - priority in the reverse natural orderIllegalArgumentException - if a processor with the
given priority already existsvoid removeProcessor(PacketProcessor processor)
processor - packet processorvoid emit(OutboundPacket packet)
packet - outbound packetCopyright © 2015. All rights reserved.