Package com.aspectran.utils.statistic
Class CounterStatistic
java.lang.Object
com.aspectran.utils.statistic.CounterStatistic
This class is a clone of org.eclipse.jetty.util.statistic.CounterStatistic
Statistics on a counter value.Keep total, current and maximum values of a counter that can be incremented and decremented. The total refers only to increments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicLong
protected final LongAccumulator
protected final LongAdder
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
max
-
current
-
total
-
-
Constructor Details
-
CounterStatistic
public CounterStatistic()
-
-
Method Details
-
reset
public void reset() -
reset
public void reset(long value) -
add
public long add(long delta) -
increment
public long increment() -
decrement
public long decrement() -
getMax
public long getMax() -
getCurrent
public long getCurrent() -
getTotal
public long getTotal() -
toString
-