Package io.ebeaninternal.api
Interface SpiQueryBindCapture
-
public interface SpiQueryBindCapture
Capture query bind values and with those actual database query plans.
-
-
Field Summary
Fields Modifier and Type Field Description static SpiQueryBindCapture
NOOP
NOOP implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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).void
queryPlanInit(long thresholdMicros)
Update the threshold micros triggering the bind capture.void
setBind(BindCapture bindCapture, long queryTimeMicros, long startNanos)
Set the captured bind values that we can use later to collect a query plan.
-
-
-
Field Detail
-
NOOP
static final SpiQueryBindCapture NOOP
NOOP implementation.
-
-
Method Detail
-
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(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.
-
-