com.yammer.metrics.spring
Class MeteredMethodInterceptor
java.lang.Object
com.yammer.metrics.spring.MeteredMethodInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback
public class MeteredMethodInterceptor
- extends Object
- implements org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metrics
protected final MetricsRegistry metrics
targetClass
protected final Class<?> targetClass
meters
protected final Map<String,Meter> meters
scope
protected final String scope
MeteredMethodInterceptor
public MeteredMethodInterceptor(MetricsRegistry metrics,
Class<?> targetClass,
String scope)
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
doWith
public void doWith(Method method)
throws IllegalArgumentException,
IllegalAccessException
- Specified by:
doWith in interface org.springframework.util.ReflectionUtils.MethodCallback
- Throws:
IllegalArgumentException
IllegalAccessException
Copyright © 2012. All Rights Reserved.