Interface SettableGauge<T>

All Superinterfaces:
Gauge<T>, Metric
All Known Implementing Classes:
DefaultSettableGauge

public interface SettableGauge<T> extends Gauge<T>

Similar to Gauge, but metric value is updated via calling setValue(T) instead. See DefaultSettableGauge.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setValue(T value)
    Set the metric to a new value.

    Methods inherited from interface com.codahale.metrics.Gauge

    getValue
  • Method Details

    • setValue

      void setValue(T value)
      Set the metric to a new value.