public interface SpiQueryBindCapture
Capture query bind values and with those actual database query plans.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancollectFor(long timeMicros) Return true if the query just executed should be bind captured to collect the query plan from (as the query time is large / interesting).voidqueryPlanInit(long thresholdMicros) Update the threshold micros triggering the bind capture.voidsetBind(io.ebeaninternal.server.bind.capture.BindCapture bindCapture, long queryTimeMicros, long startNanos) Set the captured bind values that we can use later to collect a query plan.
-
Field Details
-
NOOP
NOOP implementation.
-
-
Method Details
-
collectFor
boolean collectFor(long timeMicros) Return true if the query just executed should be bind captured to collect the query plan from (as the query time is large / interesting). -
setBind
void setBind(io.ebeaninternal.server.bind.capture.BindCapture bindCapture, long queryTimeMicros, long startNanos) Set the captured bind values that we can use later to collect a query plan.- Parameters:
bindCapture- The bind values of the queryqueryTimeMicros- The query execution timestartNanos- The nanos start of this bind capture
-
queryPlanInit
void queryPlanInit(long thresholdMicros) Update the threshold micros triggering the bind capture.
-