Class NodeThreadPoolInfo
java.lang.Object
org.opensearch.client.opensearch.nodes.info.NodeThreadPoolInfo
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeThreadPoolInfo.Builder,NodeThreadPoolInfo>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class NodeThreadPoolInfo
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<NodeThreadPoolInfo.Builder,NodeThreadPoolInfo>
The thread pool configuration details.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeThreadPoolInfo> Json deserializer forNodeThreadPoolInfo -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeThreadPoolInfo.Builderbuilder()final Integercore()The core number of threads.booleaninthashCode()final TimeAPI name:keep_alivefinal Integermax()The maximum number of threads.static NodeThreadPoolInfofinal intRequired - The size of the task queue.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The current size of the thread pool.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtype()Required - The type of thread pool executor.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forNodeThreadPoolInfo
-
-
Method Details
-
of
public static NodeThreadPoolInfo of(Function<NodeThreadPoolInfo.Builder, ObjectBuilder<NodeThreadPoolInfo>> fn) -
core
The core number of threads.API name:
core -
keepAlive
API name:keep_alive -
max
The maximum number of threads.API name:
max -
queueSize
public final int 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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<NodeThreadPoolInfo.Builder,NodeThreadPoolInfo> - Returns:
- a new builder instance.
-
builder
-
setupNodeThreadPoolInfoDeserializer
protected static void setupNodeThreadPoolInfoDeserializer(ObjectDeserializer<NodeThreadPoolInfo.Builder> op) -
hashCode
public int hashCode() -
equals
-