-
public interface PacketQueue.PacketHandler<T>A simple interface to handle packets.
-
-
Method Summary
Modifier and Type Method Description abstract booleanhandlePacket(T pkt)Does something with a packet. longmaxSequentiallyProcessedPackets()Specifies the number of packets allowed to be processed sequentiallywithout yielding control to executor's thread. -
-
Method Detail
-
handlePacket
abstract boolean handlePacket(T pkt)
Does something with a packet.
- Parameters:
pkt- the packet to do something with.
-
maxSequentiallyProcessedPackets
long maxSequentiallyProcessedPackets()
Specifies the number of packets allowed to be processed sequentiallywithout yielding control to executor's thread. Specifying positivenumber will allow other possible queues sharing same ExecutorService to process their packets.
-
-
-
-