All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.api.QueryPlanManager Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.api;

import io.ebean.meta.MetaQueryPlan;
import io.ebean.meta.QueryPlanRequest;

import java.util.List;

/**
 * Manage query plan capture.
 */
public interface QueryPlanManager {

  QueryPlanManager NOOP = new NoopQueryPlanManager();

  /**
   * Update the global default threshold used when new query plans are created.
   */
  void setDefaultThreshold(long thresholdMicros);

  /**
   * Create the bind capture for the given query plan.
   */
  SpiQueryBindCapture createBindCapture(SpiQueryPlan queryPlan);

  /**
   * Collect the database query plans.
   */
  List collect(QueryPlanRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy