Class SlowSqlTrace


  • public class SlowSqlTrace
    extends SQLTrace
    Extends the SQLTrace class to also store the slowest SQL execution times.
    Author:
    Andrew Pielage
    • Field Detail

      • SlowSqlTraceSlowestExecutionComparator

        public static Comparator<SlowSqlTrace> SlowSqlTraceSlowestExecutionComparator
    • Constructor Detail

      • SlowSqlTrace

        public SlowSqlTrace​(String query,
                            int numExecutions,
                            long time,
                            long executionTime)
    • Method Detail

      • getSlowestExecutionTime

        public long getSlowestExecutionTime()
        Gets the slowest execution time for this SQL Trace
        Returns:
        The slowest execution time
      • setSlowestExecutionTime

        public void setSlowestExecutionTime​(long slowestExecutionTime)
        Sets the slowest execution time for this SQL trace
        Parameters:
        slowestExecutionTime - The execution time to set