Class HotThreadsRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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

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