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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HotThreadsRequestbuild()Builds aHotThreadsRequest.HotThreadsRequest.BuilderignoreIdleThreads(java.lang.Boolean value)If true, known idle threads (e.g.HotThreadsRequest.Builderinterval(Time value)The interval to do the second sampling of threads.HotThreadsRequest.Builderinterval(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The interval to do the second sampling of threads.HotThreadsRequest.BuildermasterTimeout(Time value)Period to wait for a connection to the master node.HotThreadsRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node.HotThreadsRequest.BuildernodeId(java.lang.String value, java.lang.String... values)List of node IDs or names used to limit returned information.HotThreadsRequest.BuildernodeId(java.util.List<java.lang.String> list)List of node IDs or names used to limit returned information.protected HotThreadsRequest.Builderself()HotThreadsRequest.Buildersnapshots(java.lang.Long value)Number of samples of thread stacktrace.HotThreadsRequest.Buildersort(ThreadType value)The sort order for 'cpu' type (default: total)HotThreadsRequest.Builderthreads(java.lang.Long value)Specifies the number of hot threads to provide information for.HotThreadsRequest.Buildertimeout(Time value)Period to wait for a response.HotThreadsRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a response.HotThreadsRequest.Buildertype(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, _mapPutAllMethods 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_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
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 -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HotThreadsRequest.Builder>
-
build
Builds aHotThreadsRequest.- Specified by:
buildin interfaceObjectBuilder<HotThreadsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-