Class RatioGauge

  • All Implemented Interfaces:
    Gauge<Double>, Metric
    Direct Known Subclasses:
    FileDescriptorRatioGauge

    public abstract class RatioGauge
    extends Object
    implements Gauge<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.

    • Constructor Detail

      • RatioGauge

        public RatioGauge()
    • Method Detail

      • getValue

        public Double getValue()
        Description copied from interface: Gauge
        Returns the metric's current value.
        Specified by:
        getValue in interface Gauge<Double>
        Returns:
        the metric's current value