Module org.elasticsearch.server
Record Class EsExecutors.HotThreadsOnLargeQueueConfig
java.lang.Object
java.lang.Record
org.elasticsearch.common.util.concurrent.EsExecutors.HotThreadsOnLargeQueueConfig
- Enclosing class:
EsExecutors
public static record EsExecutors.HotThreadsOnLargeQueueConfig(int sizeThreshold, long durationThresholdInMillis, long intervalInMillis)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHotThreadsOnLargeQueueConfig(int sizeThreshold, long durationThresholdInMillis, long intervalInMillis) Creates an instance of aHotThreadsOnLargeQueueConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationThresholdInMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theintervalInMillisrecord component.booleanintReturns the value of thesizeThresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DISABLED
-
-
Constructor Details
-
HotThreadsOnLargeQueueConfig
public HotThreadsOnLargeQueueConfig(int sizeThreshold, long durationThresholdInMillis, long intervalInMillis) Creates an instance of aHotThreadsOnLargeQueueConfigrecord class.- Parameters:
sizeThreshold- the value for thesizeThresholdrecord componentdurationThresholdInMillis- the value for thedurationThresholdInMillisrecord componentintervalInMillis- the value for theintervalInMillisrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
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 with '=='. -
sizeThreshold
public int sizeThreshold()Returns the value of thesizeThresholdrecord component.- Returns:
- the value of the
sizeThresholdrecord component
-
durationThresholdInMillis
public long durationThresholdInMillis()Returns the value of thedurationThresholdInMillisrecord component.- Returns:
- the value of the
durationThresholdInMillisrecord component
-
intervalInMillis
public long intervalInMillis()Returns the value of theintervalInMillisrecord component.- Returns:
- the value of the
intervalInMillisrecord component
-