org.apache.commons.monitoring.jdbc
Class MonitoredConnection
java.lang.Object
org.apache.commons.monitoring.jdbc.MonitoredConnection
- All Implemented Interfaces:
- InvocationHandler
public class MonitoredConnection
- extends Object
- implements InvocationHandler
- Author:
- Nicolas De Loof
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonitoredConnection
public MonitoredConnection(Connection connection,
StopWatch stopWatch)
- Parameters:
connection
- target connection
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
monitor
public static Connection monitor(Connection connection,
Counter counter)
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.