Package 

Interface PacketQueue.PacketHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 sequentially without yielding control to executor's thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 sequentially without yielding control to executor's thread. Specifying positive number will allow other possible queues sharing same ExecutorService to process their packets.