Class ThreadInfo.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.ThreadInfo.Builder
- All Implemented Interfaces:
CopyableBuilder<ThreadInfo.Builder,,ThreadInfo> MutableBuilder<ThreadInfo.Builder,,ThreadInfo> ObjectBuilder<ThreadInfo>
- Enclosing class:
ThreadInfo
public static class ThreadInfo.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ThreadInfo.Builder,ThreadInfo>
Builder for
ThreadInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ThreadInfo.BuilderactiveThreads(Number value) Required - The number of currently active threads.build()Builds aThreadInfo.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ThreadInfo.BuilderthreadExecutions(Number value) Required - The number of thread executions.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<ThreadInfo.Builder,ThreadInfo> - Returns:
- a new builder instance.
-
activeThreads
Required - The number of currently active threads.API name:
active_threads -
threadExecutions
Required - The number of thread executions.API name:
thread_executions -
build
Builds aThreadInfo.- Specified by:
buildin interfaceObjectBuilder<ThreadInfo>- Throws:
NullPointerException- if some of the required fields are null.
-