Package io.ebean.config
Class SlowQueryEvent
- java.lang.Object
-
- io.ebean.config.SlowQueryEvent
-
public class SlowQueryEvent extends Object
Slow query event.
-
-
Constructor Summary
Constructors Constructor Description SlowQueryEvent(String sql, long timeMillis, int rowCount, ObjectGraphNode originNode)
Construct with the SQL and execution time in millis.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
SlowQueryEvent
public SlowQueryEvent(String sql, long timeMillis, int rowCount, ObjectGraphNode originNode)
Construct with the SQL and execution time in millis.
-
-
Method Detail
-
getTimeMillis
public long getTimeMillis()
Return the execution time in millis.
-
getRowCount
public int getRowCount()
Return the total row count associated with the query.
-
getOriginNode
public ObjectGraphNode getOriginNode()
Return the origin point for the root query.Typically the
originNode.getOriginQueryPoint().getFirstStackElement()
provides the stack line that shows the code that invoked the query.
-
-