public class GaugeInstanceClassMetricNamer extends DeclaringClassMetricNamer
DeclaringClassMetricNamer.COUNTER_SUFFIX, COUNTER_SUFFIX_MONOTONIC, GAUGE_SUFFIX, METERED_SUFFIX, TIMED_SUFFIX| 构造器和说明 |
|---|
GaugeInstanceClassMetricNamer() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getNameForGauge(Class<?> instanceClass,
Method method,
com.codahale.metrics.annotation.Gauge gauge)
For AOP-wrapped method invocations (which is how all metrics other than Gauges have to be
handled), there isn't a way to handle annotated methods defined in superclasses since we can't
AOP superclass methods.
|
getNameForCounted, getNameForExceptionMetered, getNameForMetered, getNameForTimed@Nonnull public String getNameForGauge(@Nonnull Class<?> instanceClass, @Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Gauge gauge)
MetricNamergetNameForGauge 在接口中 MetricNamergetNameForGauge 在类中 DeclaringClassMetricNamerinstanceClass - the type being instantiatedmethod - the annotated method (which may belong to a supertype)gauge - the annotationCopyright © 2020. All rights reserved.