-
public class QueueStatistics
-
-
Constructor Summary
Constructors Constructor Description QueueStatistics()Initializes a new QueueStatistics instance.
-
Method Summary
-
-
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.
-
-
-
-