类 DefaultCounterService
- java.lang.Object
- org.springframework.boot.actuate.metrics.writer.DefaultCounterService
- 所有已实现的接口:
CounterService
public class DefaultCounterService extends Object implements CounterService
Default implementation ofCounterService
.
构造器概要
构造器 构造器 说明 DefaultCounterService(MetricWriter writer)
Create aDefaultCounterService
instance.
构造器详细资料
DefaultCounterService
public DefaultCounterService(MetricWriter writer)
Create aDefaultCounterService
instance.- 参数:
writer
- the underlying writer used to manage metrics
方法详细资料
increment
public void increment(String metricName)
从接口复制的说明:CounterService
Increment the specified counter by 1.- 指定者:
increment
在接口中CounterService
- 参数:
metricName
- the name of the counter
decrement
public void decrement(String metricName)
从接口复制的说明:CounterService
Decrement the specified counter by 1.- 指定者:
decrement
在接口中CounterService
- 参数:
metricName
- the name of the counter
reset
public void reset(String metricName)
从接口复制的说明:CounterService
Reset the specified counter.- 指定者:
reset
在接口中CounterService
- 参数:
metricName
- the name of the counter