public class ExecutionTimeConnectionPlugin extends java.lang.Object implements IConnectionPlugin
During the cleanup phase when releaseResources()
is called, the plugin logs all the methods executed and time spent on each execution
in milliseconds.
Constructor and Description |
---|
ExecutionTimeConnectionPlugin(IConnectionPlugin nextPlugin,
Log logger) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(java.lang.Class<?> methodInvokeOn,
java.lang.String methodName,
java.util.concurrent.Callable<?> executeJdbcMethod) |
void |
releaseResources() |
public ExecutionTimeConnectionPlugin(IConnectionPlugin nextPlugin, Log logger)
public java.lang.Object execute(java.lang.Class<?> methodInvokeOn, java.lang.String methodName, java.util.concurrent.Callable<?> executeJdbcMethod) throws java.lang.Exception
execute
in interface IConnectionPlugin
java.lang.Exception
public void releaseResources()
releaseResources
in interface IConnectionPlugin