Class HotThreadsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.HotThreadsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThreadsRequest>
- Enclosing class:
- HotThreadsRequest
public static class HotThreadsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<HotThreadsRequest>
Builder for
HotThreadsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThreadsRequest
build()
Builds aHotThreadsRequest
.HotThreadsRequest.Builder
ignoreIdleThreads(java.lang.Boolean value)
If true, known idle threads (e.g.HotThreadsRequest.Builder
interval(Time value)
The interval to do the second sampling of threads.HotThreadsRequest.Builder
interval(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
The interval to do the second sampling of threads.HotThreadsRequest.Builder
masterTimeout(Time value)
Period to wait for a connection to the master node.HotThreadsRequest.Builder
masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the master node.HotThreadsRequest.Builder
nodeId(java.lang.String value, java.lang.String... values)
List of node IDs or names used to limit returned information.HotThreadsRequest.Builder
nodeId(java.util.List<java.lang.String> list)
List of node IDs or names used to limit returned information.HotThreadsRequest.Builder
snapshots(java.lang.Long value)
Number of samples of thread stacktrace.HotThreadsRequest.Builder
sort(ThreadType value)
The sort order for 'cpu' type (default: total)HotThreadsRequest.Builder
threads(java.lang.Long value)
Specifies the number of hot threads to provide information for.HotThreadsRequest.Builder
timeout(Time value)
Period to wait for a response.HotThreadsRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a response.HotThreadsRequest.Builder
type(ThreadType value)
The type to sample.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreIdleThreads
If true, known idle threads (e.g. waiting in a socket select, or to get a task from an empty queue) are filtered out.API name:
ignore_idle_threads
-
interval
The interval to do the second sampling of threads.API name:
interval
-
interval
public final HotThreadsRequest.Builder interval(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The interval to do the second sampling of threads.API name:
interval
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
masterTimeout
public final HotThreadsRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
nodeId
List of node IDs or names used to limit returned information.API name:
node_id
Adds all elements of
list
tonodeId
. -
nodeId
List of node IDs or names used to limit returned information.API name:
node_id
Adds one or more values to
nodeId
. -
snapshots
Number of samples of thread stacktrace.API name:
snapshots
-
sort
The sort order for 'cpu' type (default: total)API name:
sort
-
threads
Specifies the number of hot threads to provide information for.API name:
threads
-
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
timeout
public final HotThreadsRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
type
The type to sample.API name:
type
-
build
Builds aHotThreadsRequest
.- Specified by:
build
in interfaceObjectBuilder<HotThreadsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-