Package 

Interface PacketQueue.Observer

  • All Implemented Interfaces:

    
    public interface PacketQueue.Observer<T>
    
                        

    An interface to observe a queue, to collect statistics or similar.

    • 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 void added(T pkt) Called when a packet is added to a queue.
      abstract void removed(T pkt) Called when a packet is removed from a queue.
      abstract void dropped(T pkt) Called when a packet is dropped from a queue.
      abstract Map<out Object, out Object> getStats() Get statistics gathered by this observer.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • added

         abstract void added(T pkt)

        Called when a packet is added to a queue.

      • removed

         abstract void removed(T pkt)

        Called when a packet is removed from a queue.

      • dropped

         abstract void dropped(T pkt)

        Called when a packet is dropped from a queue.