Record Class SlowOperationDetectorConfig
java.lang.Object
java.lang.Record
com.loomcache.common.config.SlowOperationDetectorConfig
public record SlowOperationDetectorConfig(boolean enabled, long thresholdMs, long sampleIntervalMs, int maxRecords, int maxStackFrames)
extends Record
Optional diagnostic plugin configuration for detecting slow cache operations.
The detector is enabled by default to match Hazelcast's
hazelcast.slow.operation.detector.enabled=true default. Operators can
disable it when they prefer lower diagnostic overhead.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final intstatic final intstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSlowOperationDetectorConfig(boolean enabled, long thresholdMs, long sampleIntervalMs, int maxRecords, int maxStackFrames) Creates an instance of aSlowOperationDetectorConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlowOperationDetectorConfigdefaults()static SlowOperationDetectorConfigdisabled()booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRecordsrecord component.intReturns the value of themaxStackFramesrecord component.longReturns the value of thesampleIntervalMsrecord component.longReturns the value of thethresholdMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED- See Also:
-
DEFAULT_THRESHOLD_MS
public static final long DEFAULT_THRESHOLD_MS- See Also:
-
DEFAULT_SAMPLE_INTERVAL_MS
public static final long DEFAULT_SAMPLE_INTERVAL_MS- See Also:
-
DEFAULT_MAX_RECORDS
public static final int DEFAULT_MAX_RECORDS- See Also:
-
DEFAULT_MAX_STACK_FRAMES
public static final int DEFAULT_MAX_STACK_FRAMES- See Also:
-
-
Constructor Details
-
SlowOperationDetectorConfig
public SlowOperationDetectorConfig(boolean enabled, long thresholdMs, long sampleIntervalMs, int maxRecords, int maxStackFrames) Creates an instance of aSlowOperationDetectorConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentthresholdMs- the value for thethresholdMsrecord componentsampleIntervalMs- the value for thesampleIntervalMsrecord componentmaxRecords- the value for themaxRecordsrecord componentmaxStackFrames- the value for themaxStackFramesrecord component
-
-
Method Details
-
disabled
-
defaults
-
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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
thresholdMs
public long thresholdMs()Returns the value of thethresholdMsrecord component.- Returns:
- the value of the
thresholdMsrecord component
-
sampleIntervalMs
public long sampleIntervalMs()Returns the value of thesampleIntervalMsrecord component.- Returns:
- the value of the
sampleIntervalMsrecord component
-
maxRecords
public int maxRecords()Returns the value of themaxRecordsrecord component.- Returns:
- the value of the
maxRecordsrecord component
-
maxStackFrames
public int maxStackFrames()Returns the value of themaxStackFramesrecord component.- Returns:
- the value of the
maxStackFramesrecord component
-