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 location(); 013 014 /** 015 * Migrate to location() 016 */ 017 @Deprecated 018 default String getLocation() { 019 return location(); 020 } 021 022 /** 023 * Return the total count. 024 */ 025 long count(); 026 027 /** 028 * Migrate to count() 029 */ 030 @Deprecated 031 default long getCount() { 032 return count(); 033 } 034 035 /** 036 * Return the total execution time in micros. 037 */ 038 long total(); 039 040 /** 041 * Migrate to total() 042 */ 043 @Deprecated 044 default long getTotal() { 045 return total(); 046 } 047 048 /** 049 * Return the max execution time in micros. 050 */ 051 long max(); 052 053 /** 054 * Migrate to max() 055 */ 056 @Deprecated 057 default long getMax() { 058 return max(); 059 } 060 061 /** 062 * Return the mean execution time in micros. 063 */ 064 long mean(); 065 066 067 /** 068 * Migrate to mean() 069 */ 070 @Deprecated 071 default long getMean() { 072 return mean(); 073 } 074 075 /** 076 * Return true if this is the first metrics collection for this query. 077 * <p> 078 * This can be used to suppress including the SQL and location from metrics 079 * content. 080 * </p> 081 */ 082 boolean initialCollection(); 083}