Class HotThreadsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.HotThreadsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThreadsRequest>
- Enclosing class:
- HotThreadsRequest
public static class HotThreadsRequest.Builder extends java.lang.Object implements ObjectBuilder<HotThreadsRequest>
Builder for
HotThreadsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThreadsRequest.Builder
addNodeId(java.lang.String value)
Add a value tonodeId(List)
, creating the list if needed.HotThreadsRequest
build()
Builds aHotThreadsRequest
.HotThreadsRequest.Builder
ignoreIdleThreads(java.lang.Boolean value)
Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)HotThreadsRequest.Builder
interval(java.lang.String value)
The interval for the second sampling of threadsHotThreadsRequest.Builder
nodeId(java.lang.String... value)
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesHotThreadsRequest.Builder
nodeId(java.util.List<java.lang.String> value)
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesHotThreadsRequest.Builder
snapshots(java.lang.Long value)
Number of samples of thread stacktrace (default: 10)HotThreadsRequest.Builder
threads(java.lang.Long value)
Specify the number of threads to provide information for (default: 3)HotThreadsRequest.Builder
threadType(ThreadType value)
API name:thread_type
HotThreadsRequest.Builder
timeout(java.lang.String value)
Explicit operation timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_id
-
nodeId
A comma-separated list of node IDs or names to limit the returned information; use_local
to return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
node_id
-
addNodeId
Add a value tonodeId(List)
, creating the list if needed. -
ignoreIdleThreads
Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)API name:
ignore_idle_threads
-
interval
The interval for the second sampling of threadsAPI name:
interval
-
snapshots
Number of samples of thread stacktrace (default: 10)API name:
snapshots
-
threads
Specify the number of threads to provide information for (default: 3)API name:
threads
-
threadType
API name:thread_type
-
timeout
Explicit operation timeoutAPI name:
timeout
-
build
Builds aHotThreadsRequest
.- Specified by:
build
in interfaceObjectBuilder<HotThreadsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-