public abstract class AbstractSlowQueryLoggingListener extends SlowQueryListener
| Modifier and Type | Field and Description |
|---|---|
protected String |
prefix |
protected QueryLogEntryCreator |
queryLogEntryCreator |
protected boolean |
writeDataSourceName |
executor, inExecution, threshold, thresholdTimeUnitDEFAULT| Constructor and Description |
|---|
AbstractSlowQueryLoggingListener() |
| Modifier and Type | Method and Description |
|---|---|
QueryLogEntryCreator |
getQueryLogEntryCreator() |
protected void |
onSlowQuery(ExecutionInfo execInfo,
List<QueryInfo> queryInfoList,
long startTimeInMills)
Callback when query execution time exceeds the threshold.
|
void |
setQueryLogEntryCreator(QueryLogEntryCreator queryLogEntryCreator) |
protected abstract void |
writeLog(String message) |
afterQuery, beforeQuery, getExecutor, getThreshold, getThresholdTimeUnit, setThreshold, setThresholdTimeUnitprotected boolean writeDataSourceName
protected QueryLogEntryCreator queryLogEntryCreator
protected String prefix
protected void onSlowQuery(ExecutionInfo execInfo, List<QueryInfo> queryInfoList, long startTimeInMills)
SlowQueryListeneronSlowQuery in class SlowQueryListenerexecInfo - query execution infoqueryInfoList - query parameter infostartTimeInMills - time in mills when the query startedprotected abstract void writeLog(String message)
public void setQueryLogEntryCreator(QueryLogEntryCreator queryLogEntryCreator)
public QueryLogEntryCreator getQueryLogEntryCreator()
Copyright © 2017. All rights reserved.