public class SlowQueryEvent extends Object
Constructor and Description |
---|
SlowQueryEvent(String sql,
long timeMillis,
int rowCount,
ObjectGraphNode originNode)
Construct with the SQL and execution time in millis.
|
Modifier and Type | Method and Description |
---|---|
ObjectGraphNode |
getOriginNode()
Return the origin point for the root query.
|
int |
getRowCount()
Return the total row count associated with the query.
|
String |
getSql()
Return the SQL for the slow query.
|
long |
getTimeMillis()
Return the execution time in millis.
|
public SlowQueryEvent(String sql, long timeMillis, int rowCount, ObjectGraphNode originNode)
public long getTimeMillis()
public int getRowCount()
public ObjectGraphNode getOriginNode()
Typically the originNode.getOriginQueryPoint().getFirstStackElement()
provides the stack line that
shows the code that invoked the query.
Copyright © 2019. All rights reserved.