public class PerformanceCounter
extends java.lang.Object
| Constructor and Description | 
|---|
PerformanceCounter(PerformanceCounterFormula formula)
Constructs PerformanceCounter object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
decrement()
Decrement the counter by one. 
 | 
void | 
decrementBy(long value)
Decrement by. 
 | 
PerformanceSample | 
getNextPerformanceSample()
Gets the next performance sample. 
 | 
double | 
getNextSampleValue()
Sample and gets the next value. 
 | 
double | 
getNextValue()
Gets the next value. 
 | 
void | 
increment()
Increment the counter by one. 
 | 
void | 
incrementBy(long value)
Increment by. 
 | 
void | 
reset()
Reset the counter. 
 | 
void | 
setRawValue(long rawValue)
Sets the raw value. 
 | 
public PerformanceCounter(PerformanceCounterFormula formula)
formula - counter value calculation formulapublic void incrementBy(long value)
value - value to increment counter bypublic void decrementBy(long value)
value - value to decrement counter bypublic double getNextValue()
public double getNextSampleValue()
public PerformanceSample getNextPerformanceSample()
public void reset()
public void setRawValue(long rawValue)
rawValue - set the new raw value for the counterpublic void increment()
public void decrement()