Package nl.vpro.jmx
Class CountAspect<T>
- java.lang.Object
-
- nl.vpro.jmx.CountAspect<T>
-
- All Implemented Interfaces:
InvocationHandler
public class CountAspect<T> extends Object implements InvocationHandler
Wraps all calls to register some statistics.- Since:
- 1.57
- Author:
- Michiel Meeuwissen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CountAspect.Local
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocal<CountAspect.Local>
currentThreadLocal
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
invoke(Object proxy, Method method, Object[] args)
static <T> T
proxyCounter(Map<String,Counter> counter, Duration countWindow, Integer bucketCount, ObjectName name, Class<T> restInterface, T service, org.slf4j.Logger log, Duration warnThreshold)
-
-
-
Field Detail
-
currentThreadLocal
public static final ThreadLocal<CountAspect.Local> currentThreadLocal
-
-