java.lang.Object
org.opensearch.client.opensearch.nodes.stats.Breaker
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<Breaker.Builder,Breaker>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class Breaker extends Object implements PlainJsonSerializable, ToCopyableBuilder<Breaker.Builder,Breaker>
  • Field Details

  • Method Details

    • of

    • estimatedSize

      @Nullable public final String estimatedSize()
      Estimated memory used for the operation.

      API name: estimated_size

    • estimatedSizeInBytes

      @Nullable public final Long estimatedSizeInBytes()
      Estimated memory used, in bytes, for the operation.

      API name: estimated_size_in_bytes

    • limitSize

      @Nullable public final String limitSize()
      Memory limit for the circuit breaker.

      API name: limit_size

    • limitSizeInBytes

      @Nullable public final Long limitSizeInBytes()
      Memory limit, in bytes, for the circuit breaker.

      API name: limit_size_in_bytes

    • overhead

      @Nullable public final Double overhead()
      A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate.

      API name: overhead

    • tripped

      @Nullable public final Long tripped()
      Total number of times the circuit breaker has been triggered and prevented an out of memory error.

      API name: tripped

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

      @Nonnull public static Breaker.Builder builder()
    • setupBreakerDeserializer

      protected static void setupBreakerDeserializer(ObjectDeserializer<Breaker.Builder> op)
    • hashCode

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

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