Package nl.vpro.jmx
Class CountAspect<T>
java.lang.Object
nl.vpro.jmx.CountAspect<T>
- All Implemented Interfaces:
InvocationHandler
Wraps all calls to register some statistics.
- Since:
- 1.57
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
proxyCounter
(Map<String, Counter> counter, Duration countWindow, Integer bucketCount, ObjectName name, Class<T> restInterface, T service, nl.vpro.logging.simple.SimpleLogger log, Duration warnThreshold, nl.vpro.logging.simple.Level warnLevel)
-
Field Details
-
currentThreadLocal
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
proxyCounter
-