Package 

Class QueueStatistics

    • Method Summary

      Modifier and Type Method Description
      JSONObject getStats() Gets a snapshot of the stats in JSON format.
      void add(long now) Registers the addition of a packet.
      void remove(long now) Registers the removal of a packet.
      void drop(long now) Registers that a packet was dropped.
      • Methods inherited from class java.lang.Object

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

      • QueueStatistics

        QueueStatistics()
        Initializes a new QueueStatistics instance.
    • Method Detail

      • getStats

         JSONObject getStats()

        Gets a snapshot of the stats in JSON format.

      • add

         void add(long now)

        Registers the addition of a packet.

        Parameters:
        now - the time (in milliseconds since the epoch) at which thepacket was added.
      • remove

         void remove(long now)

        Registers the removal of a packet.

        Parameters:
        now - the time (in milliseconds since the epoch) at which thepacket was removed.
      • drop

         void drop(long now)

        Registers that a packet was dropped.

        Parameters:
        now - the time (in milliseconds since the epoch) at which thepacket was dropped.