001package io.ebean.meta; 002 003 004/** 005 * Timed execution statistics. 006 */ 007public interface MetaTimedMetric extends MetaMetric { 008 009 /** 010 * Return the metric location if defined. 011 */ 012 String getLocation(); 013 014 /** 015 * Return the total count. 016 */ 017 long getCount(); 018 019 /** 020 * Return the total execution time in micros. 021 */ 022 long getTotal(); 023 024 /** 025 * Return the max execution time in micros. 026 */ 027 long getMax(); 028 029 /** 030 * Return the mean execution time in micros. 031 */ 032 long getMean(); 033 034 /** 035 * Return true if this is the first metrics collection for this query. 036 * <p> 037 * This can be used to suppress including the SQL and location from metrics 038 * content. 039 * </p> 040 */ 041 boolean initialCollection(); 042}