MethodInterceptor for performance monitoring.
This interceptor has no effect on the intercepted method call.
Uses a StopWatch for the actual performance measuring.
org.springframework.util.StopWatch
| Access | Constructor and Description |
|---|---|
| public | |
| public | PerformanceMonitorInterceptor(boolean
whether to use a dynamic logger or a static logger useDynamicLogger)Create a new PerformanceMonitorInterceptor with a dynamic or static logger, according to the given flag. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | invokeUnderTrace(MethodInvocation invocation, Log
the logger)Log to write trace messages toImplements abstract org. MethodInvocation.
|
| PerformanceMonitorInterceptor | back to summary |
|---|---|
| public PerformanceMonitorInterceptor() Create a new PerformanceMonitorInterceptor with a static logger. | |
| PerformanceMonitorInterceptor | back to summary |
|---|---|
| public PerformanceMonitorInterceptor(boolean useDynamicLogger) Create a new PerformanceMonitorInterceptor with a dynamic or static logger, according to the given flag.
| |
| invokeUnderTrace | back to summary |
|---|---|
| protected Object invokeUnderTrace(MethodInvocation invocation, Log logger) throws Throwable Implements abstract org. Doc from org. Subclasses must override this method to perform any tracing around the
supplied By default, the passed-in | |