Record Class SlowQueryLog.QueryPattern
java.lang.Object
java.lang.Record
com.loomcache.server.query.SlowQueryLog.QueryPattern
- Enclosing class:
SlowQueryLog
-
Constructor Summary
ConstructorsConstructorDescriptionQueryPattern(String pattern, long count, double avgDurationMs, long maxDurationMs) Creates an instance of aQueryPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgDurationMsrecord component.longcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxDurationMsrecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryPattern
Creates an instance of aQueryPatternrecord class.- Parameters:
pattern- the value for thepatternrecord componentcount- the value for thecountrecord componentavgDurationMs- the value for theavgDurationMsrecord componentmaxDurationMs- the value for themaxDurationMsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
avgDurationMs
public double avgDurationMs()Returns the value of theavgDurationMsrecord component.- Returns:
- the value of the
avgDurationMsrecord component
-
maxDurationMs
public long maxDurationMs()Returns the value of themaxDurationMsrecord component.- Returns:
- the value of the
maxDurationMsrecord component
-