MutableCounter, MutableGauge, MutableQuantiles, MutableRates, MutableRatesWithAggregation, MutableRollingAverages, MutableStat@Public
@Evolving
public abstract class MutableMetric
extends java.lang.Object
| Constructor | Description |
|---|---|
MutableMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
changed() |
|
protected void |
clearChanged() |
Clear the changed flag in the snapshot operations
|
protected void |
setChanged() |
Set the changed flag in mutable operations
|
void |
snapshot(MetricsRecordBuilder builder) |
Get a snapshot of metric if changed
|
abstract void |
snapshot(MetricsRecordBuilder builder,
boolean all) |
Get a snapshot of the metric
|
public abstract void snapshot(MetricsRecordBuilder builder, boolean all)
builder - the metrics record builderall - if true, snapshot unchanged metrics as wellpublic void snapshot(MetricsRecordBuilder builder)
builder - the metrics record builderprotected void setChanged()
protected void clearChanged()
public boolean changed()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.