Class JavaRuntimeCircuitBreakerConfig

java.lang.Object
io.openlineage.client.circuitBreaker.JavaRuntimeCircuitBreakerConfig
All Implemented Interfaces:
CircuitBreakerConfig, MergeConfig<JavaRuntimeCircuitBreakerConfig>

public final class JavaRuntimeCircuitBreakerConfig extends Object implements CircuitBreakerConfig, MergeConfig<JavaRuntimeCircuitBreakerConfig>
  • Field Details

    • DEFAULT_MEMORY_THRESHOLD

      public static final int DEFAULT_MEMORY_THRESHOLD
      See Also:
    • DEFAULT_GC_CPU_THRESHOLD

      public static final int DEFAULT_GC_CPU_THRESHOLD
      See Also:
  • Constructor Details

    • JavaRuntimeCircuitBreakerConfig

      public JavaRuntimeCircuitBreakerConfig(int memoryThreshold, int gcCpuThreshold, int circuitCheckIntervalInMillis)
    • JavaRuntimeCircuitBreakerConfig

      public JavaRuntimeCircuitBreakerConfig(int memoryThreshold, int gcCpuThreshold)
    • JavaRuntimeCircuitBreakerConfig

      public JavaRuntimeCircuitBreakerConfig()
    • JavaRuntimeCircuitBreakerConfig

      public JavaRuntimeCircuitBreakerConfig(Integer memoryThreshold, Integer gcCpuThreshold, Integer circuitCheckIntervalInMillis, Integer timeoutInSeconds)
  • Method Details

    • mergeWithNonNull

      Description copied from interface: MergeConfig
      Method to create new config class based on current instance and non-null argument value. In most cases, implementation needs to create a new instance of T, while merging all the properties.
      Specified by:
      mergeWithNonNull in interface MergeConfig<JavaRuntimeCircuitBreakerConfig>
      Parameters:
      other - overwrite value
      Returns:
      merged config entry
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

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

      public Integer getMemoryThreshold()
    • setMemoryThreshold

      public void setMemoryThreshold(Integer memoryThreshold)
    • getGcCpuThreshold

      public Integer getGcCpuThreshold()
    • setGcCpuThreshold

      public void setGcCpuThreshold(Integer gcCpuThreshold)
    • getCircuitCheckIntervalInMillis

      public Integer getCircuitCheckIntervalInMillis()
    • setCircuitCheckIntervalInMillis

      public void setCircuitCheckIntervalInMillis(Integer circuitCheckIntervalInMillis)
    • getTimeoutInSeconds

      public Integer getTimeoutInSeconds()
    • setTimeoutInSeconds

      public void setTimeoutInSeconds(Integer timeoutInSeconds)