Class ObjectGauge<T>

    • Constructor Detail

      • ObjectGauge

        public ObjectGauge​(String name,
                           @Nullable
                           @Nullable String desc,
                           Supplier<T> val,
                           Class<T> type)
        Parameters:
        name - Name.
        desc - Description.
        val - Supplier.
        type - Type.
    • Method Detail

      • value

        public T value()
        Specified by:
        value in interface ObjectMetric<T>
        Returns:
        Value ot the metric.