@ThreadSafe public class StatisticsHandlerCounter extends Object implements IMutableStatisticsHandlerCounter
IMutableStatisticsHandlerCounter| Constructor and Description |
|---|
StatisticsHandlerCounter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
int |
getInvocationCount() |
void |
increment(long nByHowMany)
Increment the counter by an arbitrary number
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitincrement@Nonnegative public int getInvocationCount()
getInvocationCount in interface IStatisticsHandler@CheckForSigned public long getCount()
getCount in interface IStatisticsHandlerCounterpublic void increment(long nByHowMany)
IMutableStatisticsHandlerCounterincrement in interface IMutableStatisticsHandlerCounternByHowMany - The number to be added. May be negative as well.Copyright © 2014–2019 Philip Helger. All rights reserved.