Class ThreadCount
java.lang.Object
org.opensearch.client.opensearch.nodes.stats.ThreadCount
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ThreadCount.Builder,ThreadCount>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ThreadCount
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ThreadCount.Builder,ThreadCount>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ThreadCount> Json deserializer forThreadCount -
Method Summary
Modifier and TypeMethodDescriptionfinal Longactive()Number of active threads in the thread pool.static ThreadCount.Builderbuilder()final LongNumber of tasks completed by the thread pool executor.booleaninthashCode()final Longlargest()Highest number of active threads in the thread pool.static ThreadCountfinal Longqueue()Number of tasks in queue for the thread pool.final Longrejected()Number of tasks rejected by the thread pool executor.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 Longthreads()Number of threads in the thread pool.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final TimeThe total amount of time that tasks spend waiting in the thread pool queue.final LongThe total amount of time that tasks spend waiting in the thread pool queue.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 forThreadCount
-
-
Method Details
-
of
-
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 -
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 -
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<ThreadCount.Builder,ThreadCount> - Returns:
- a new builder instance.
-
builder
-
setupThreadCountDeserializer
-
hashCode
public int hashCode() -
equals
-