public class NoOpGauge extends AbstractMetric implements Gauge
Gauge
.Gauge.Builder
Modifier and Type | Method and Description |
---|---|
void |
decrement(double amount)
Decrement the gauge by
amount . |
long |
getCount()
Returns the number of times that setValue has been called since this gauge was created.
|
Snapshot[] |
getSnapshots()
Returns snapshots of the values if the gauge was configured to summarize.
|
StatisticConfig[] |
getStatisticsConfig()
Returns statistics configs added for summarization.
|
double |
getSum()
Returns the total amount of all values.
|
double |
getValue() |
void |
increment(double amount)
Increment the gauge by
amount . |
void |
setValue(double value)
Set the gauge to the given value.
|
equals, getId, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public NoOpGauge(MetricId id)
public void increment(double amount)
Gauge
amount
.public void decrement(double amount)
Gauge
amount
.public void setValue(double value)
Gauge
public double getValue()
public long getCount()
Gauge
public double getSum()
Gauge
public Snapshot[] getSnapshots()
Gauge
getSnapshots
in interface Gauge
public StatisticConfig[] getStatisticsConfig()
Gauge
getStatisticsConfig
in interface Gauge
Copyright © 2018 WSO2. All rights reserved.