Package 

Interface PacketQueue.Observer


  • 
    public interface PacketQueue.Observer<T>
    
                        

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

    • 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
    • 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.