Interface ReservoirFactory
public interface ReservoirFactory
Factory interface that can be used byDropwizardMetricServices
to create a customReservoir
.- Since:
- 1.5.0
Field Summary
Fields Modifier and Type Field Description static ReservoirFactory
NONE
Default emptyReservoirFactory
implementation.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.codahale.metrics.Reservoir
getReservoir(String name)
Return theReservoir
instance to use ornull
if a custom reservoir is not needed.
Field Detail
NONE
static final ReservoirFactory NONE
Default emptyReservoirFactory
implementation.
Method Detail
getReservoir
com.codahale.metrics.Reservoir getReservoir(String name)
Return theReservoir
instance to use ornull
if a custom reservoir is not needed.- Parameters:
name
- the name of the metric- Returns:
- a reservoir instance or
null