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 Summary
-
Constructor Summary
ConstructorDescriptionSimpleMemoryCircuitBreakerConfig
(int memoryThreshold) SimpleMemoryCircuitBreakerConfig
(int memoryThreshold, int circuitCheckIntervalInMillis) SimpleMemoryCircuitBreakerConfig
(Integer memoryThreshold, Integer circuitCheckIntervalInMillis, Integer timeoutInSeconds) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
Method to create new config class based on current instance and non-null argument value.void
setCircuitCheckIntervalInMillis
(Integer circuitCheckIntervalInMillis) void
setMemoryThreshold
(Integer memoryThreshold) void
setTimeoutInSeconds
(Integer timeoutInSeconds) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
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
-
-
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 interfaceMergeConfig<SimpleMemoryCircuitBreakerConfig>
- Parameters:
other
- overwrite value- Returns:
- merged config entry
-
toString
-
equals
-
hashCode
public int hashCode() -
getMemoryThreshold
-
setMemoryThreshold
-
getCircuitCheckIntervalInMillis
-
setCircuitCheckIntervalInMillis
-
getTimeoutInSeconds
-
setTimeoutInSeconds
-