Class RefreshStats

java.lang.Object
org.opensearch.client.opensearch._types.RefreshStats
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<RefreshStats.Builder,RefreshStats>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class RefreshStats extends Object implements PlainJsonSerializable, ToCopyableBuilder<RefreshStats.Builder,RefreshStats>
The statistics about refresh operations.
  • Field Details

  • Method Details

    • of

    • externalTotal

      public final long externalTotal()
      Required - The total number of external refresh operations.

      API name: external_total

    • externalTotalTime

      @Nullable public final Time externalTotalTime()
      The total amount of time spent on external refresh operations.

      API name: external_total_time

    • externalTotalTimeInMillis

      public final long externalTotalTimeInMillis()
      Required - The total amount of time spent on external refresh operations in milliseconds.

      API name: external_total_time_in_millis

    • listeners

      public final long listeners()
      Required - The number of refresh listeners.

      API name: listeners

    • total

      public final long total()
      Required - The total number of refresh operations.

      API name: total

    • totalTime

      @Nullable public final Time totalTime()
      The total amount of time spent on refresh operations.

      API name: total_time

    • totalTimeInMillis

      public final long totalTimeInMillis()
      Required - The total amount of time spent on refresh operations in milliseconds.

      API name: total_time_in_millis

    • 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 RefreshStats.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<RefreshStats.Builder,RefreshStats>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static RefreshStats.Builder builder()
    • setupRefreshStatsDeserializer

      protected static void setupRefreshStatsDeserializer(ObjectDeserializer<RefreshStats.Builder> op)
    • hashCode

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

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