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

io.ebean.metric.QueryPlanCollector Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean.metric;

import io.ebean.meta.MetaQueryMetric;

import java.util.List;

/**
 * Object used to collect query plan metrics.
 */
public interface QueryPlanCollector {

  /**
   * Return true if the statistics should be reset.
   */
  boolean isReset();

  /**
   * Add the query plan statistic.
   */
  void add(MetaQueryMetric stats);

  /**
   * Return all the collected query plan statistics.
   */
  List complete();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy