类 BufferCounterService
- java.lang.Object
- org.springframework.boot.actuate.metrics.buffer.BufferCounterService
- 所有已实现的接口:
CounterService
@UsesJava8 public class BufferCounterService extends Object implements CounterService
Fast implementation ofCounterService
usingCounterBuffers
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 BufferCounterService(CounterBuffers buffers)
Create aBufferCounterService
instance.
构造器详细资料
BufferCounterService
public BufferCounterService(CounterBuffers buffers)
Create aBufferCounterService
instance.- 参数:
buffers
- the underlying buffers used to store 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