Class CounterStatistic
- java.lang.Object
-
- com.aspectran.core.util.statistic.CounterStatistic
-
public class CounterStatistic extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description CounterStatistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(long delta)
long
decrement()
long
getCurrent()
long
getMax()
long
getTotal()
long
increment()
void
reset()
void
reset(long value)
java.lang.String
toString()
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-