Class Breaker.Builder

All Implemented Interfaces:
WithJson<Breaker.Builder>, ObjectBuilder<Breaker>
Enclosing class:
Breaker

public static class Breaker.Builder extends WithJsonObjectBuilderBase<Breaker.Builder> implements ObjectBuilder<Breaker>
Builder for Breaker.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • estimatedSize

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

      API name: estimated_size

    • estimatedSizeInBytes

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

      API name: estimated_size_in_bytes

    • limitSize

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

      API name: limit_size

    • limitSizeInBytes

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

      API name: limit_size_in_bytes

    • overhead

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

      API name: overhead

    • tripped

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

      API name: tripped

    • self

      protected Breaker.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Breaker.Builder>
    • build

      public Breaker build()
      Builds a Breaker.
      Specified by:
      build in interface ObjectBuilder<Breaker>
      Throws:
      NullPointerException - if some of the required fields are null.