Class RatioGauge

  • All Implemented Interfaces:
    Gauge<java.lang.Double>, Metric
    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 class  RatioGauge.Ratio
      A ratio of one quantity to another.
    • Constructor Summary

      Constructors 
      Constructor Description
      RatioGauge()  
    • Constructor Detail

      • RatioGauge

        public RatioGauge()
    • Method Detail

      • getValue

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