类 BufferMetricReader
- java.lang.Object
- org.springframework.boot.actuate.metrics.buffer.BufferMetricReader
- 所有已实现的接口:
MetricReader
,PrefixMetricReader
@UsesJava8 public class BufferMetricReader extends Object implements MetricReader, PrefixMetricReader
- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 BufferMetricReader(CounterBuffers counterBuffers, GaugeBuffers gaugeBuffers)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 long
count()
The number of metrics known to this reader.Iterable<Metric<?>>
findAll()
Find all the metrics known to this reader.Iterable<Metric<?>>
findAll(String prefix)
Find all metrics whose name starts with the given prefix.Metric<?>
findOne(String name)
Find an instance of the metric with the given name (usually the latest recorded value).
构造器详细资料
BufferMetricReader
public BufferMetricReader(CounterBuffers counterBuffers, GaugeBuffers gaugeBuffers)
方法详细资料
findOne
public Metric<?> findOne(String name)
从接口复制的说明:MetricReader
Find an instance of the metric with the given name (usually the latest recorded value).- 指定者:
findOne
在接口中MetricReader
- 参数:
name
- the name of the metric to find- 返回:
- a metric value or null if there are none with that name
findAll
public Iterable<Metric<?>> findAll()
从接口复制的说明:MetricReader
Find all the metrics known to this reader.- 指定者:
findAll
在接口中MetricReader
- 返回:
- all instances of metrics known to this reader
findAll
public Iterable<Metric<?>> findAll(String prefix)
从接口复制的说明:PrefixMetricReader
Find all metrics whose name starts with the given prefix.- 指定者:
findAll
在接口中PrefixMetricReader
- 参数:
prefix
- the prefix for metric names- 返回:
- all metrics with names starting with the prefix
count
public long count()
从接口复制的说明:MetricReader
The number of metrics known to this reader.- 指定者:
count
在接口中MetricReader
- 返回:
- the number of metrics