Class DropwizardGauge

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.dropwizard.DropwizardGauge
All Implemented Interfaces:
Gauge, Meter

public class DropwizardGauge
extends AbstractMeter
implements Gauge
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Gauge

    Gauge.Builder<T>

    Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter

    Meter.Builder, Meter.Id, Meter.Type
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    double value()
    The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.

    Methods inherited from class io.micrometer.core.instrument.AbstractMeter

    getId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.Gauge

    measure

    Methods inherited from interface io.micrometer.core.instrument.Meter

    close, getId, match, use
  • Method Details

    • value

      public double value()
      Description copied from interface: Gauge
      The act of observing the value by calling this method triggers sampling of the underlying number or user-defined function that defines the value for the gauge.
      Specified by:
      value in interface Gauge
      Returns:
      The current value.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object