接口 ReservoirFactory
public interface ReservoirFactory
Factory interface that can be used byDropwizardMetricServices
to create a customReservoir
.- 从以下版本开始:
- 1.5.0
字段概要
字段 修饰符和类型 字段 说明 static ReservoirFactory
NONE
Default emptyReservoirFactory
implementation.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 com.codahale.metrics.Reservoir
getReservoir(String name)
Return theReservoir
instance to use ornull
if a custom reservoir is not needed.
字段详细资料
NONE
static final ReservoirFactory NONE
Default emptyReservoirFactory
implementation.
方法详细资料
getReservoir
com.codahale.metrics.Reservoir getReservoir(String name)
Return theReservoir
instance to use ornull
if a custom reservoir is not needed.- 参数:
name
- the name of the metric- 返回:
- a reservoir instance or
null