Class StatisticsCounter
java.lang.Object
org.red5.server.api.statistics.support.StatisticsCounter
Counts numbers used by the statistics. Keeps track of current, maximum and total numbers.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicInteger
Current number.private AtomicInteger
Maximum number.private AtomicInteger
Total number. -
Constructor Summary
-
Method Summary
-
Field Details
-
current
Current number. -
total
Total number. -
max
Maximum number.
-
-
Constructor Details
-
StatisticsCounter
public StatisticsCounter()
-
-
Method Details
-
increment
public void increment()Increment statistics by one. -
decrement
public void decrement()Decrement statistics by one. -
getCurrent
public int getCurrent()Get current number.- Returns:
- current number
-
getTotal
public int getTotal()Get total number.- Returns:
- total
-
getMax
public int getMax()Get maximum number.- Returns:
- max
-
toString
-