public class MeteredMethodInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback
Modifier and Type | Field and Description |
---|---|
protected Map<String,Meter> |
meters |
protected MetricsRegistry |
metrics |
protected String |
scope |
protected Class<?> |
targetClass |
Constructor and Description |
---|
MeteredMethodInterceptor(MetricsRegistry metrics,
Class<?> targetClass,
String scope) |
Modifier and Type | Method and Description |
---|---|
void |
doWith(Method method) |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected final MetricsRegistry metrics
protected final Class<?> targetClass
protected final String scope
public MeteredMethodInterceptor(MetricsRegistry metrics, Class<?> targetClass, String scope)
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException
doWith
in interface org.springframework.util.ReflectionUtils.MethodCallback
IllegalArgumentException
IllegalAccessException
Copyright © 2014. All Rights Reserved.