Class SimpleMemoryCircuitBreakerConfig

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

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

    • DEFAULT_MEMORY_THRESHOLD

      public static final int DEFAULT_MEMORY_THRESHOLD
      See Also:
  • Constructor Details

    • SimpleMemoryCircuitBreakerConfig

      public SimpleMemoryCircuitBreakerConfig(int memoryThreshold)
    • SimpleMemoryCircuitBreakerConfig

      public SimpleMemoryCircuitBreakerConfig(int memoryThreshold, int circuitCheckIntervalInMillis)
    • SimpleMemoryCircuitBreakerConfig

      public SimpleMemoryCircuitBreakerConfig()
    • SimpleMemoryCircuitBreakerConfig

      public SimpleMemoryCircuitBreakerConfig(Integer memoryThreshold, 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<SimpleMemoryCircuitBreakerConfig>
      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)
    • getCircuitCheckIntervalInMillis

      public Integer getCircuitCheckIntervalInMillis()
    • setCircuitCheckIntervalInMillis

      public void setCircuitCheckIntervalInMillis(Integer circuitCheckIntervalInMillis)
    • getTimeoutInSeconds

      public Integer getTimeoutInSeconds()
    • setTimeoutInSeconds

      public void setTimeoutInSeconds(Integer timeoutInSeconds)