public interface DebugMetric
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value)
|
long |
getCurrentValue()
Gets the current value of this metric.
|
void |
increment()
Adds 1 to this counter if metering is
enabled or this is an
unconditional metric. |
boolean |
isConditional()
Determines if this counter is only enabled if metering is
enabled. |
default boolean |
isEnabled()
Determines if this counter is enabled (either conditionally or unconditionally).
|
void |
setConditional(boolean flag)
Sets a flag determining if this counter is only enabled if metering is
enabled. |
void increment()
enabled or this is an
unconditional metric.void add(long value)
void setConditional(boolean flag)
enabled.boolean isConditional()
enabled.long getCurrentValue()
default boolean isEnabled()