public static class MetricsInstrumentationModule.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricsInstrumentationModule |
build() |
MetricsInstrumentationModule.Builder |
withAnnotationMatcher(AnnotationResolver annotationResolver) |
MetricsInstrumentationModule.Builder |
withMatcher(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> matcher) |
MetricsInstrumentationModule.Builder |
withMetricNamer(MetricNamer metricNamer) |
MetricsInstrumentationModule.Builder |
withMetricRegistry(com.codahale.metrics.MetricRegistry metricRegistry) |
@Nonnull public MetricsInstrumentationModule.Builder withMetricRegistry(@Nonnull com.codahale.metrics.MetricRegistry metricRegistry)
metricRegistry - The registry to use when creating meters, etc. for annotated methods.@Nonnull public MetricsInstrumentationModule.Builder withMatcher(@Nonnull com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> matcher)
matcher - The matcher to determine which types to look for metrics in@Nonnull public MetricsInstrumentationModule.Builder withMetricNamer(@Nonnull MetricNamer metricNamer)
metricNamer - The metric namer to use when creating names for metrics for annotated methods@Nonnull public MetricsInstrumentationModule.Builder withAnnotationMatcher(@Nonnull AnnotationResolver annotationResolver)
annotationResolver - Annotation resolver to use@Nonnull public MetricsInstrumentationModule build()