Class SlowQueryReport.QueryStatsComparator
java.lang.Object
org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport.QueryStatsComparator
- All Implemented Interfaces:
Comparator<SlowQueryReport.QueryStats>
- Enclosing class:
SlowQueryReport
public static class SlowQueryReport.QueryStatsComparator
extends Object
implements Comparator<SlowQueryReport.QueryStats>
Compares QueryStats by their lastInvocation value. QueryStats that have
never been updated have a lastInvocation value of
0 which is
treated as the newest possible invocation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(SlowQueryReport.QueryStats stats1, SlowQueryReport.QueryStats stats2) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
QueryStatsComparator
public QueryStatsComparator()Creates a new QueryStatsComparator.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<SlowQueryReport.QueryStats>
-