Class DefaultSettableGauge<T>

    • Constructor Detail

      • DefaultSettableGauge

        public DefaultSettableGauge()
        Create an instance with no default value.
      • DefaultSettableGauge

        public DefaultSettableGauge​(T defaultValue)
        Create an instance with a default value.
        Parameters:
        defaultValue - default value
    • Method Detail

      • setValue

        public void setValue​(T value)
        Set the metric to a new value.
        Specified by:
        setValue in interface SettableGauge<T>
      • getValue

        public T getValue()
        Returns the current value.
        Specified by:
        getValue in interface Gauge<T>
        Returns:
        the current value