Module org.elasticsearch.server
Package org.elasticsearch.monitor.jvm
Record Class HotThreads.RequestOptions
java.lang.Object
java.lang.Record
org.elasticsearch.monitor.jvm.HotThreads.RequestOptions
- All Implemented Interfaces:
Writeable
- Enclosing class:
HotThreads
public static record HotThreads.RequestOptions(int threads, HotThreads.ReportType reportType, HotThreads.SortOrder sortOrder, TimeValue interval, int snapshots, boolean ignoreIdleThreads)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequestOptions(int threads, HotThreads.ReportType reportType, HotThreads.SortOrder sortOrder, TimeValue interval, int snapshots, boolean ignoreIdleThreads) Creates an instance of aRequestOptionsrecord 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.booleanReturns the value of theignoreIdleThreadsrecord component.interval()Returns the value of theintervalrecord component.static HotThreads.RequestOptionsreadFrom(StreamInput in) Returns the value of thereportTyperecord component.intReturns the value of thesnapshotsrecord component.Returns the value of thesortOrderrecord component.intthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
RequestOptions
public RequestOptions(int threads, HotThreads.ReportType reportType, HotThreads.SortOrder sortOrder, TimeValue interval, int snapshots, boolean ignoreIdleThreads) Creates an instance of aRequestOptionsrecord class.- Parameters:
threads- the value for thethreadsrecord componentreportType- the value for thereportTyperecord componentsortOrder- the value for thesortOrderrecord componentinterval- the value for theintervalrecord componentsnapshots- the value for thesnapshotsrecord componentignoreIdleThreads- the value for theignoreIdleThreadsrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
reportType
Returns the value of thereportTyperecord component.- Returns:
- the value of the
reportTyperecord component
-
sortOrder
Returns the value of thesortOrderrecord component.- Returns:
- the value of the
sortOrderrecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
snapshots
public int snapshots()Returns the value of thesnapshotsrecord component.- Returns:
- the value of the
snapshotsrecord component
-
ignoreIdleThreads
public boolean ignoreIdleThreads()Returns the value of theignoreIdleThreadsrecord component.- Returns:
- the value of the
ignoreIdleThreadsrecord component
-