Interface MetricsContext.Counter<T extends java.lang.Number>

  • Enclosing interface:
    MetricsContext

    public static interface MetricsContext.Counter<T extends java.lang.Number>
    • Method Detail

      • increment

        void increment()
        Increment the counter by a single whole number value (i.e. 1).
      • increment

        void increment​(T amount)
        Increment the counter by the provided amount.
        Parameters:
        amount - to be incremented
      • count

        default java.util.Optional<T> count()
        Reporting count is optional if the counter is reporting externally.
        Returns:
        current count if available