Package com.codahale.metrics
Class RatioGauge
- java.lang.Object
-
- com.codahale.metrics.RatioGauge
-
- Direct Known Subclasses:
FileDescriptorRatioGauge
public abstract class RatioGauge extends java.lang.Object implements Gauge<java.lang.Double>
A gauge which measures the ratio of one value to another. If the denominator is zero, not a number, or infinite, the resulting ratio is not a number.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRatioGauge.RatioA ratio of one quantity to another.
-
Constructor Summary
Constructors Constructor Description RatioGauge()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RatioGauge.RatiogetRatio()Returns theRatioGauge.Ratiowhich is the gauge's current value.java.lang.DoublegetValue()Returns the metric's current value.
-
-
-
Method Detail
-
getRatio
protected abstract RatioGauge.Ratio getRatio()
Returns theRatioGauge.Ratiowhich is the gauge's current value.- Returns:
- the
RatioGauge.Ratiowhich is the gauge's current value
-
-