Record Class OperationsTracker.LatencyPercentiles
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.OperationsTracker.LatencyPercentiles
- Enclosing class:
OperationsTracker
public static record OperationsTracker.LatencyPercentiles(double p50, double p95, double p99)
extends Record
Latency percentiles record.
-
Constructor Summary
ConstructorsConstructorDescriptionLatencyPercentiles(double p50, double p95, double p99) Creates an instance of aLatencyPercentilesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublep50()Returns the value of thep50record component.doublep95()Returns the value of thep95record component.doublep99()Returns the value of thep99record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LatencyPercentiles
public LatencyPercentiles(double p50, double p95, double p99) Creates an instance of aLatencyPercentilesrecord class.- Parameters:
p50- the value for thep50record componentp95- the value for thep95record componentp99- the value for thep99record 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
p50
public double p50()Returns the value of thep50record component.- Returns:
- the value of the
p50record component
-
p95
public double p95()Returns the value of thep95record component.- Returns:
- the value of the
p95record component
-
p99
public double p99()Returns the value of thep99record component.- Returns:
- the value of the
p99record component
-