接口 CounterWriter

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidincrement​(Delta<?> delta)
      Increment the value of a metric (or decrement if the delta is negative).
      voidreset​(String metricName)
      Reset the value of a metric, usually to zero value.
    • 方法详细资料

      • increment

        void increment​(Delta<?> delta)
        Increment the value of a metric (or decrement if the delta is negative). The name of the delta is the name of the metric to increment.
        参数:
        delta - the amount to increment by
      • reset

        void reset​(String metricName)
        Reset the value of a metric, usually to zero value. Implementations can discard the old values if desired, but may choose not to. This operation is optional (some implementations may not be able to fulfill the contract, in which case they should simply do nothing).
        参数:
        metricName - the name to reset