Record Class MicrometerTimerTracker
java.lang.Object
java.lang.Record
org.infinispan.commons.stat.micrometer.MicrometerTimerTracker
- All Implemented Interfaces:
- TimerTracker
public record MicrometerTimerTracker(io.micrometer.core.instrument.Timer timer)
extends Record
implements TimerTracker
A 
TimerTracker implementation that stores the value in Timer.- Since:
- 15.1
- 
Field SummaryFields inherited from interface org.infinispan.commons.stat.TimerTrackerNO_OP
- 
Constructor SummaryConstructorsConstructorDescriptionMicrometerTimerTracker(io.micrometer.core.instrument.Timer timer) Creates an instance of aMicrometerTimerTrackerrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.micrometer.core.instrument.Timertimer()Returns the value of thetimerrecord component.final StringtoString()Returns a string representation of this record class.voidAdds a record.voidAdds a record.
- 
Constructor Details- 
MicrometerTimerTrackerpublic MicrometerTimerTracker(io.micrometer.core.instrument.Timer timer) Creates an instance of aMicrometerTimerTrackerrecord class.- Parameters:
- timer- the value for the- timerrecord component
 
 
- 
- 
Method Details- 
updateDescription copied from interface:TimerTrackerAdds a record.- Specified by:
- updatein interface- TimerTracker
- Parameters:
- duration- The duration value.
 
- 
updateDescription copied from interface:TimerTrackerAdds a record.- Specified by:
- updatein interface- TimerTracker
- Parameters:
- value- The value.
- timeUnit- The- TimeUnitof the value.
 
- 
countpublic long count()- Specified by:
- countin interface- TimerTracker
- Returns:
- The amount of records.
 
- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
timerpublic io.micrometer.core.instrument.Timer timer()Returns the value of thetimerrecord component.- Returns:
- the value of the timerrecord component
 
 
-