public interface MetricNamer
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getNameForCounted(Method method,
com.codahale.metrics.annotation.Counted counted) |
String |
getNameForExceptionMetered(Method method,
com.codahale.metrics.annotation.ExceptionMetered exceptionMetered) |
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.
|
String |
getNameForMetered(Method method,
com.codahale.metrics.annotation.Metered metered) |
String |
getNameForTimed(Method method,
com.codahale.metrics.annotation.Timed timed) |
@Nonnull String getNameForCounted(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Counted counted)
@Nonnull String getNameForExceptionMetered(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.ExceptionMetered exceptionMetered)
@Nonnull String getNameForGauge(@Nonnull Class<?> instanceClass, @Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Gauge gauge)
instanceClass - the type being instantiatedmethod - the annotated method (which may belong to a supertype)gauge - the annotation@Nonnull String getNameForMetered(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Metered metered)
Copyright © 2020. All rights reserved.