Record Class RequestCoalescer.GroupStats
java.lang.Object
java.lang.Record
com.loomcache.server.handler.RequestCoalescer.GroupStats
- Enclosing class:
RequestCoalescer
-
Constructor Summary
ConstructorsConstructorDescriptionGroupStats(Message originalRequest, int coalescedCount, long executionTimeNs) Creates an instance of aGroupStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecoalescedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimeNsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalRequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupStats
Creates an instance of aGroupStatsrecord class.- Parameters:
originalRequest- the value for theoriginalRequestrecord componentcoalescedCount- the value for thecoalescedCountrecord componentexecutionTimeNs- the value for theexecutionTimeNsrecord 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. -
originalRequest
Returns the value of theoriginalRequestrecord component.- Returns:
- the value of the
originalRequestrecord component
-
coalescedCount
public int coalescedCount()Returns the value of thecoalescedCountrecord component.- Returns:
- the value of the
coalescedCountrecord component
-
executionTimeNs
public long executionTimeNs()Returns the value of theexecutionTimeNsrecord component.- Returns:
- the value of the
executionTimeNsrecord component
-