Class YammerSettableGauge<T>

  • Type Parameters:
    T - the type of the metric's value
    All Implemented Interfaces:
    com.yammer.metrics.core.Metric, SettableValue<T>

    public class YammerSettableGauge<T>
    extends com.yammer.metrics.core.Gauge<T>
    implements SettableValue<T>
    YammerSettableGauge extends Gauge and implements SettableValue, allowing setting a value or a value supplier to provide the gauge value.
    • Constructor Detail

      • YammerSettableGauge

        public YammerSettableGauge​(Supplier<T> valueSupplier)
      • YammerSettableGauge

        public YammerSettableGauge​(T value)
    • Method Detail

      • value

        public T value()
        Specified by:
        value in class com.yammer.metrics.core.Gauge<T>