Class HotThreadsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<HotThreadsRequest.Builder>
co.elastic.clients.elasticsearch.nodes.HotThreadsRequest.Builder
- All Implemented Interfaces:
WithJson<HotThreadsRequest.Builder>,ObjectBuilder<HotThreadsRequest>
- Enclosing class:
- HotThreadsRequest
public static class HotThreadsRequest.Builder
extends RequestBase.AbstractBuilder<HotThreadsRequest.Builder>
implements ObjectBuilder<HotThreadsRequest>
Builder for
HotThreadsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHotThreadsRequest.ignoreIdleThreads(Boolean value) If true, known idle threads (e.g.The interval to do the second sampling of threads.The interval to do the second sampling of threads.List of node IDs or names used to limit returned information.List of node IDs or names used to limit returned information.protected HotThreadsRequest.Builderself()Number of samples of thread stacktrace.sort(ThreadType value) The sort order for 'cpu' type (default: total)Specifies the number of hot threads to provide information for.Period to wait for a response.Period to wait for a response.type(ThreadType value) The type to sample.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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
The interval to do the second sampling of threads.API name:
interval -
nodeId
List of node IDs or names used to limit returned information.API name:
node_idAdds all elements of
listtonodeId. -
nodeId
List of node IDs or names used to limit returned information.API name:
node_idAdds 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
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 -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HotThreadsRequest.Builder>
-
build
Builds aHotThreadsRequest.- Specified by:
buildin interfaceObjectBuilder<HotThreadsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-