org.mariadb.jdbc.internal.logging
Class ProtocolLoggingProxy
java.lang.Object
org.mariadb.jdbc.internal.logging.ProtocolLoggingProxy
- All Implemented Interfaces:
- InvocationHandler
public class ProtocolLoggingProxy
- extends Object
- implements InvocationHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
profileSql
protected boolean profileSql
slowQueryThresholdNanos
protected Long slowQueryThresholdNanos
maxQuerySizeToLog
protected int maxQuerySizeToLog
protocol
protected Protocol protocol
ProtocolLoggingProxy
public ProtocolLoggingProxy(Protocol protocol,
Options options)
- Constructor. Will create a proxy around protocol to log queries.
- Parameters:
protocol
- protocol to proxyoptions
- options
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
Copyright © 2017. All rights reserved.