Record Class MicrometerDistributionSummary
java.lang.Object
java.lang.Record
org.infinispan.commons.stat.micrometer.MicrometerDistributionSummary
- All Implemented Interfaces:
DistributionSummaryTracker
public record MicrometerDistributionSummary(io.micrometer.core.instrument.DistributionSummary summary)
extends Record
implements DistributionSummaryTracker
A
DistributionSummaryTracker implementation that stores the value in DistributionSummary.- Since:
- 15.1
-
Field Summary
Fields inherited from interface org.infinispan.commons.stat.DistributionSummaryTracker
NO_OP -
Constructor Summary
ConstructorsConstructorDescriptionMicrometerDistributionSummary(io.micrometer.core.instrument.DistributionSummary summary) Creates an instance of aMicrometerDistributionSummaryrecord 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.voidrecord(double amount) Updates the statistics kept by the summary with the specified amount.io.micrometer.core.instrument.DistributionSummarysummary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MicrometerDistributionSummary
public MicrometerDistributionSummary(io.micrometer.core.instrument.DistributionSummary summary) Creates an instance of aMicrometerDistributionSummaryrecord class.- Parameters:
summary- the value for thesummaryrecord component
-
-
Method Details
-
record
public void record(double amount) Description copied from interface:DistributionSummaryTrackerUpdates the statistics kept by the summary with the specified amount.- Specified by:
recordin interfaceDistributionSummaryTracker- Parameters:
amount- Amount for an event being tracked.
-
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 withObjects::equals(Object,Object). -
summary
public io.micrometer.core.instrument.DistributionSummary summary()Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-