Interface StatisticsProvider

    • Method Detail

      • getGauge

        <T> GaugeStats<T> getGauge​(java.lang.String name,
                                   java.util.function.Supplier<T> supplier)
        Creates a new GaugeStats and registers it under the given name. If a gauge with the same exists already then the same instance is returned.
        Type Parameters:
        T - the type of the metric
        Parameters:
        name - the name of the gauge
        supplier - provides the values which are returned by the gauge
        Returns:
        the gauge