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 Details

    • Builder

      public Builder()
  • Method Details

    • nodeId

      public HotThreadsRequest.Builder nodeId​(@Nullable 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 nodes

      API name: node_id

    • nodeId

      public HotThreadsRequest.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 nodes

      API name: node_id

    • addNodeId

      public HotThreadsRequest.Builder addNodeId​(java.lang.String value)
      Add a value to nodeId(List), creating the list if needed.
    • ignoreIdleThreads

      public HotThreadsRequest.Builder ignoreIdleThreads​(@Nullable 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)

      API name: ignore_idle_threads

    • interval

      public HotThreadsRequest.Builder interval​(@Nullable java.lang.String value)
      The interval for the second sampling of threads

      API name: interval

    • snapshots

      public HotThreadsRequest.Builder snapshots​(@Nullable java.lang.Long value)
      Number of samples of thread stacktrace (default: 10)

      API name: snapshots

    • threads

      public HotThreadsRequest.Builder threads​(@Nullable java.lang.Long value)
      Specify the number of threads to provide information for (default: 3)

      API name: threads

    • threadType

      public HotThreadsRequest.Builder threadType​(@Nullable ThreadType value)
      API name: thread_type
    • timeout

      public HotThreadsRequest.Builder timeout​(@Nullable java.lang.String value)
      Explicit operation timeout

      API name: timeout

    • build

      public HotThreadsRequest build()
      Specified by:
      build in interface ObjectBuilder<HotThreadsRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.