Interface Gauge<T>

  • All Superinterfaces:
    MetricValueProvider<T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Gauge<T>
    extends MetricValueProvider<T>
    A gauge metric is an instantaneous reading of a particular value.
    • Method Detail

      • value

        T value​(MetricConfig config,
                long now)
        Returns the current value associated with this gauge.
        Parameters:
        config - The configuration for this metric
        now - The POSIX time in milliseconds the measurement is being taken