Package io.kroxylicious.proxy.micrometer
Record Class PauseDetectorHook.PauseDetectorHookConfig
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.micrometer.PauseDetectorHook.PauseDetectorHookConfig
- Enclosing class:
PauseDetectorHook
-
Constructor Summary
ConstructorsConstructorDescriptionPauseDetectorHookConfig(Long sleepIntervalMs, Long pauseThresholdMs) Creates an instance of aPauseDetectorHookConfigrecord 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.Returns the value of thepauseThresholdMsrecord component.Returns the value of thesleepIntervalMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PauseDetectorHookConfig
Creates an instance of aPauseDetectorHookConfigrecord class.- Parameters:
sleepIntervalMs- the value for thesleepIntervalMsrecord componentpauseThresholdMs- the value for thepauseThresholdMsrecord component
-
-
Method Details
-
getSleepInterval
-
getPauseThreshold
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
sleepIntervalMs
Returns the value of thesleepIntervalMsrecord component.- Returns:
- the value of the
sleepIntervalMsrecord component
-
pauseThresholdMs
Returns the value of thepauseThresholdMsrecord component.- Returns:
- the value of the
pauseThresholdMsrecord component
-