Record Class ClientRequestDeduplicator.CoalescingStats
java.lang.Object
java.lang.Record
com.loomcache.client.ClientRequestDeduplicator.CoalescingStats
- Enclosing class:
ClientRequestDeduplicator
public static record ClientRequestDeduplicator.CoalescingStats(long totalRequests, long coalesced, int uniqueSent)
extends Record
Statistics for request deduplication.
-
Constructor Summary
ConstructorsConstructorDescriptionCoalescingStats(long totalRequests, long coalesced, int uniqueSent) Creates an instance of aCoalescingStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecoalescedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalRequestsrecord component.intReturns the value of theuniqueSentrecord component.
-
Constructor Details
-
CoalescingStats
public CoalescingStats(long totalRequests, long coalesced, int uniqueSent) Creates an instance of aCoalescingStatsrecord class.- Parameters:
totalRequests- the value for thetotalRequestsrecord componentcoalesced- the value for thecoalescedrecord componentuniqueSent- the value for theuniqueSentrecord 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. -
totalRequests
public long totalRequests()Returns the value of thetotalRequestsrecord component.- Returns:
- the value of the
totalRequestsrecord component
-
coalesced
public long coalesced()Returns the value of thecoalescedrecord component.- Returns:
- the value of the
coalescedrecord component
-
uniqueSent
public int uniqueSent()Returns the value of theuniqueSentrecord component.- Returns:
- the value of the
uniqueSentrecord component
-