Class NodeThreadPoolInfo.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.info.NodeThreadPoolInfo.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeThreadPoolInfo.Builder,,NodeThreadPoolInfo> MutableBuilder<NodeThreadPoolInfo.Builder,,NodeThreadPoolInfo> ObjectBuilder<NodeThreadPoolInfo>
- Enclosing class:
NodeThreadPoolInfo
public static class NodeThreadPoolInfo.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NodeThreadPoolInfo.Builder,NodeThreadPoolInfo>
Builder for
NodeThreadPoolInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodeThreadPoolInfo.copy()Create a new builderCopyableBuilderthat is a copy of this one.The core number of threads.API name:keep_aliveAPI name:keep_aliveThe maximum number of threads.queueSize(int value) Required - The size of the task queue.The current size of the thread pool.Required - The type of thread pool executor.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<NodeThreadPoolInfo.Builder,NodeThreadPoolInfo> - Returns:
- a new builder instance.
-
core
The core number of threads.API name:
core -
keepAlive
API name:keep_alive -
keepAlive
@Nonnull public final NodeThreadPoolInfo.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:keep_alive -
max
The maximum number of threads.API name:
max -
queueSize
Required - The size of the task queue.API name:
queue_size -
size
The current size of the thread pool.API name:
size -
type
Required - The type of thread pool executor.API name:
type -
build
Builds aNodeThreadPoolInfo.- Specified by:
buildin interfaceObjectBuilder<NodeThreadPoolInfo>- Throws:
NullPointerException- if some of the required fields are null.
-