@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class MutableMetric extends Object
Constructor and Description |
---|
MutableMetric() |
Modifier and Type | Method and 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 © 2021 Apache Software Foundation. All rights reserved.