public final class MetricImpl extends DebugValue implements DebugMetric
Constructor and Description |
---|
MetricImpl(String name,
boolean conditional) |
Modifier and Type | Method and Description |
---|---|
void |
add(long value)
|
void |
increment()
Adds 1 to this counter if metering is
enabled or this is an
unconditional metric. |
String |
toString(long value) |
addToCurrentValue, compareTo, getCurrentValue, getIndex, getName, isConditional, setConditional, setCurrentValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCurrentValue, isConditional, isEnabled, setConditional
public MetricImpl(String name, boolean conditional)
public void increment()
DebugMetric
enabled
or this is an
unconditional metric.increment
in interface DebugMetric
public void add(long value)
DebugMetric
add
in interface DebugMetric
public String toString(long value)
toString
in class DebugValue