public final class CountStatisticImpl extends StatisticImpl implements CountStatistic, InvocationHandler
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
Constructor and Description |
---|
CountStatisticImpl(long countVal,
String name,
String unit,
String desc,
long sampleTime,
long startTime) |
CountStatisticImpl(String name,
String unit,
String desc) |
Modifier and Type | Method and Description |
---|---|
void |
decrement() |
long |
getCount()
The count since the last reset.
|
Map |
getStaticAsMap() |
CountStatistic |
getStatistic() |
void |
increment() |
void |
increment(long delta) |
Object |
invoke(Object proxy,
Method m,
Object[] args) |
void |
reset() |
void |
setCount(long countVal) |
String |
toString() |
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public CountStatisticImpl(long countVal, String name, String unit, String desc, long sampleTime, long startTime)
public CountStatistic getStatistic()
public Map getStaticAsMap()
getStaticAsMap
in class StatisticImpl
public String toString()
toString
in class StatisticImpl
public long getCount()
CountStatistic
getCount
in interface CountStatistic
public void setCount(long countVal)
public void increment()
public void increment(long delta)
public void decrement()
public void reset()
reset
in class StatisticImpl
Copyright © 2017 Oracle. All rights reserved.