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>
  • Field Details

  • Method Details

    • of

    • active

      @Nullable public final Long active()
      Number of active threads in the thread pool.

      API name: active

    • completed

      @Nullable public final Long completed()
      Number of tasks completed by the thread pool executor.

      API name: completed

    • largest

      @Nullable public final Long largest()
      Highest number of active threads in the thread pool.

      API name: largest

    • queue

      @Nullable public final Long queue()
      Number of tasks in queue for the thread pool.

      API name: queue

    • rejected

      @Nullable public final Long rejected()
      Number of tasks rejected by the thread pool executor.

      API name: rejected

    • threads

      @Nullable public final Long threads()
      Number of threads in the thread pool.

      API name: threads

    • totalWaitTime

      @Nullable public final Time totalWaitTime()
      The total amount of time that tasks spend waiting in the thread pool queue. Currently, only search, search_throttled, and index_searcher thread pools support this metric.

      API name: total_wait_time

    • totalWaitTimeInNanos

      @Nullable public final Long totalWaitTimeInNanos()
      The total amount of time that tasks spend waiting in the thread pool queue. Currently, only search, search_throttled, and index_searcher thread pools support this metric.

      API name: total_wait_time_in_nanos

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public ThreadCount.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ThreadCount.Builder,ThreadCount>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static ThreadCount.Builder builder()
    • setupThreadCountDeserializer

      protected static void setupThreadCountDeserializer(ObjectDeserializer<ThreadCount.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object