Class ThreadCount.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.ThreadCount.Builder
- All Implemented Interfaces:
CopyableBuilder<ThreadCount.Builder,,ThreadCount> MutableBuilder<ThreadCount.Builder,,ThreadCount> ObjectBuilder<ThreadCount>
- Enclosing class:
ThreadCount
public static class ThreadCount.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ThreadCount.Builder,ThreadCount>
Builder for
ThreadCount.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ThreadCount.BuilderNumber of active threads in the thread pool.build()Builds aThreadCount.final ThreadCount.BuilderNumber of tasks completed by the thread pool executor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ThreadCount.BuilderHighest number of active threads in the thread pool.final ThreadCount.BuilderNumber of tasks in queue for the thread pool.final ThreadCount.BuilderNumber of tasks rejected by the thread pool executor.final ThreadCount.BuilderNumber of threads in the thread pool.final ThreadCount.BuilderThe total amount of time that tasks spend waiting in the thread pool queue.final ThreadCount.BuildertotalWaitTime(Time value) The total amount of time that tasks spend waiting in the thread pool queue.final ThreadCount.BuildertotalWaitTimeInNanos(Long value) The total amount of time that tasks spend waiting in the thread pool queue.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ThreadCount.Builder,ThreadCount> - Returns:
- a new builder instance.
-
active
Number of active threads in the thread pool.API name:
active -
completed
Number of tasks completed by the thread pool executor.API name:
completed -
largest
Highest number of active threads in the thread pool.API name:
largest -
queue
Number of tasks in queue for the thread pool.API name:
queue -
rejected
Number of tasks rejected by the thread pool executor.API name:
rejected -
threads
Number of threads in the thread pool.API name:
threads -
totalWaitTime
The total amount of time that tasks spend waiting in the thread pool queue. Currently, onlysearch,search_throttled, andindex_searcherthread pools support this metric.API name:
total_wait_time -
totalWaitTime
@Nonnull public final ThreadCount.Builder totalWaitTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The total amount of time that tasks spend waiting in the thread pool queue. Currently, onlysearch,search_throttled, andindex_searcherthread pools support this metric.API name:
total_wait_time -
totalWaitTimeInNanos
The total amount of time that tasks spend waiting in the thread pool queue. Currently, onlysearch,search_throttled, andindex_searcherthread pools support this metric.API name:
total_wait_time_in_nanos -
build
Builds aThreadCount.- Specified by:
buildin interfaceObjectBuilder<ThreadCount>- Throws:
NullPointerException- if some of the required fields are null.
-