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 final SpiQueryBindCapture
    NOOP implementation.
  • Method Summary

    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(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

  • 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 query
      queryTimeMicros - The query execution time
      startNanos - The nanos start of this bind capture
    • queryPlanInit

      void queryPlanInit(long thresholdMicros)
      Update the threshold micros triggering the bind capture.