Class HotThreadsRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.HotThreadsRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<HotThreadsRequest>
- Enclosing class:
- HotThreadsRequest
public static class HotThreadsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<HotThreadsRequest>
Builder forHotThreadsRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HotThreadsRequestbuild()Builds aHotThreadsRequest.HotThreadsRequest.BuilderclusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the cluster-manager node.HotThreadsRequest.BuilderclusterManagerTimeout(Time value)Period to wait for a connection to the cluster-manager node.HotThreadsRequest.BuilderignoreIdleThreads(java.lang.Boolean value)If true, known idle threads (e.g.HotThreadsRequest.Builderinterval(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The interval to do the second sampling of threads.HotThreadsRequest.Builderinterval(Time value)The interval to do the second sampling of threads.HotThreadsRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Deprecated.HotThreadsRequest.BuildermasterTimeout(Time value)Deprecated.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.HotThreadsRequest.Buildersnapshots(java.lang.Long value)Number of samples of thread stacktrace.HotThreadsRequest.Builderthreads(java.lang.Long value)Specifies the number of hot threads to provide information for.HotThreadsRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a response.HotThreadsRequest.Buildertimeout(Time value)Period to wait for a response.HotThreadsRequest.Buildertype(ThreadType value)The type to sample.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
ignoreIdleThreads
public final HotThreadsRequest.Builder ignoreIdleThreads(@Nullable java.lang.Boolean value)
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
public final HotThreadsRequest.Builder interval(@Nullable Time value)
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
@Deprecated public final HotThreadsRequest.Builder masterTimeout(@Nullable Time value)
Deprecated.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
@Deprecated public final HotThreadsRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Deprecated.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
-
clusterManagerTimeout
public final HotThreadsRequest.Builder clusterManagerTimeout(@Nullable Time value)
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout
-
clusterManagerTimeout
public final HotThreadsRequest.Builder clusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout
-
nodeId
public final HotThreadsRequest.Builder nodeId(java.util.List<java.lang.String> list)
List of node IDs or names used to limit returned information.API name:
node_idAdds all elements of
listtonodeId.
-
nodeId
public final HotThreadsRequest.Builder nodeId(java.lang.String value, java.lang.String... values)
List of node IDs or names used to limit returned information.API name:
node_idAdds one or more values to
nodeId.
-
snapshots
public final HotThreadsRequest.Builder snapshots(@Nullable java.lang.Long value)
Number of samples of thread stacktrace.API name:
snapshots
-
threads
public final HotThreadsRequest.Builder threads(@Nullable java.lang.Long value)
Specifies the number of hot threads to provide information for.API name:
threads
-
timeout
public final HotThreadsRequest.Builder timeout(@Nullable Time value)
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
public final HotThreadsRequest.Builder type(@Nullable ThreadType value)
The type to sample.API name:
type
-
build
public HotThreadsRequest build()
Builds aHotThreadsRequest.- Specified by:
buildin interfaceObjectBuilder<HotThreadsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-