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 aRequestOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theignoreIdleThreads
record component.interval()
Returns the value of theinterval
record component.static HotThreads.RequestOptions
readFrom
(StreamInput in) Returns the value of thereportType
record component.int
Returns the value of thesnapshots
record component.Returns the value of thesortOrder
record component.int
threads()
Returns the value of thethreads
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(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 aRequestOptions
record class.- Parameters:
threads
- the value for thethreads
record componentreportType
- the value for thereportType
record componentsortOrder
- the value for thesortOrder
record componentinterval
- the value for theinterval
record componentsnapshots
- the value for thesnapshots
record componentignoreIdleThreads
- the value for theignoreIdleThreads
record component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 thethreads
record component.- Returns:
- the value of the
threads
record component
-
reportType
Returns the value of thereportType
record component.- Returns:
- the value of the
reportType
record component
-
sortOrder
Returns the value of thesortOrder
record component.- Returns:
- the value of the
sortOrder
record component
-
interval
Returns the value of theinterval
record component.- Returns:
- the value of the
interval
record component
-
snapshots
public int snapshots()Returns the value of thesnapshots
record component.- Returns:
- the value of the
snapshots
record component
-
ignoreIdleThreads
public boolean ignoreIdleThreads()Returns the value of theignoreIdleThreads
record component.- Returns:
- the value of the
ignoreIdleThreads
record component
-