public class MonitoredConnection extends Object implements InvocationHandler
Constructor and Description |
---|
MonitoredConnection(Connection connection,
org.apache.sirona.stopwatches.StopWatch stopWatch) |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static Connection |
monitor(Connection connection,
org.apache.sirona.counters.Counter counter) |
public MonitoredConnection(Connection connection, org.apache.sirona.stopwatches.StopWatch stopWatch)
connection
- target connectionpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public static Connection monitor(Connection connection, org.apache.sirona.counters.Counter counter)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.