Package 

Interface PacketQueue.PacketHandler

    • Method Summary

      Modifier and Type Method Description
      abstract boolean handlePacket(T pkt) Does something with a packet.
      long maxSequentiallyProcessedPackets() Specifies the number of packets allowed to be processed sequentiallywithout yielding control to executor's thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.