public class FeignMetricsInvocationHandlerFactoryDecorator
extends java.lang.Object
implements feign.InvocationHandlerFactory
InvocationHandlerFactory.create(Target, Map) and initializes a metric for each
annotations of Timed, Metered or ExceptionMetered into the global
MetricRegistry. Additionally, it triggers the metric during invocation of the
InvocationHandlerFactory.MethodHandlers.
This class is inspired by com.codahale.metrics.jersey2.InstrumentedResourceMethodApplicationListener.
| Constructor and Description |
|---|
FeignMetricsInvocationHandlerFactoryDecorator(feign.InvocationHandlerFactory original,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.InvocationHandler |
create(feign.Target target,
java.util.Map<java.lang.reflect.Method,feign.InvocationHandlerFactory.MethodHandler> dispatch) |
Copyright © 2021. All rights reserved.