public abstract class Counter0 extends Object implements RegistrationHandle
Suitable uses are "total requests handled", "bytes sent", etc. Use Description.setRate()
to suggest the monitoring system should also track the rate of increments
if this is of interest.
For an instantaneous read of a value that can change over time (e.g. "memory in use") use a
CallbackMetric
.
Constructor and Description |
---|
Counter0() |
Modifier and Type | Method and Description |
---|---|
void |
increment()
Increment the counter by one event.
|
abstract void |
incrementBy(long value)
Increment the counter by a specified amount.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove