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 Details

    • Builder

      public Builder()
  • Method Details

    • 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

      public final HotThreadsRequest.Builder masterTimeout​(@Nullable Time value)
      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

      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_id

      Adds all elements of list to nodeId.

    • 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_id

      Adds 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()
      Specified by:
      build in interface ObjectBuilder<HotThreadsRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.