@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()
Increment the counter by 1
|
void |
increment(long nByHowMany)
Increment the counter by an arbitrary number
|
@Nonnegative public int getInvocationCount()
getInvocationCount in interface IStatisticsHandler@CheckForSigned public long getCount()
getCount in interface IStatisticsHandlerCounterpublic void increment()
IMutableStatisticsHandlerCounterincrement in interface IMutableStatisticsHandlerCounterpublic void increment(long nByHowMany)
IMutableStatisticsHandlerCounterincrement in interface IMutableStatisticsHandlerCounternByHowMany - The number to be added. May be negative as well.Copyright © 2014–2017 Philip Helger. All rights reserved.