@ProviderType
public interface MetricsService
MetricsService enables creation of various types of Metric.| Modifier and Type | Field and Description | 
|---|---|
| static MetricsService | NOOPDummy variant of MetricsService which does not
 collect any metric | 
| Modifier and Type | Method and Description | 
|---|---|
| <A> A | adaptTo(java.lang.Class<A> type)Adapts the service to the specified type. | 
| Counter | counter(java.lang.String name)Creates a new  Counterand registers it under the given name. | 
| Histogram | histogram(java.lang.String name)Creates a new  Histogramand registers it under the given name. | 
| Meter | meter(java.lang.String name)Creates a new  Meterand registers it under the given name. | 
| Timer | timer(java.lang.String name)Creates a new  Timerand registers it under the given name. | 
static final MetricsService NOOP
Timer timer(java.lang.String name)
Timer and registers it under the given name.
 If a timer with same name exists then same instance is returnedname - the name of the metricTimerHistogram histogram(java.lang.String name)
Histogram and registers it under the given name.
 If a histogram with same name exists then same instance is returned.name - the name of the metricHistogramCounter counter(java.lang.String name)
Counter and registers it under the given name.
 If a counter with same name exists then same instance is returnedname - the name of the metricCounterMeter meter(java.lang.String name)
Meter and registers it under the given name.
 If a meter with same name exists then same instance is returnedname - the name of the metricMeter<A> A adaptTo(java.lang.Class<A> type)
MetricRegistryA - The type to which this metric is to be adapted.type - Class object for the type to which this metric is to be adapted.Copyright © 2018 The Apache Software Foundation. All rights reserved.