Class StepFunctionCounter<T>

    • Constructor Detail

      • StepFunctionCounter

        public StepFunctionCounter​(Meter.Id id,
                                   Clock clock,
                                   long stepMillis,
                                   T obj,
                                   java.util.function.ToDoubleFunction<T> f)
    • Method Detail

      • count

        public double count()
        Specified by:
        count in interface FunctionCounter
        Returns:
        The cumulative count since this counter was created.