Class SimpleMemoryCircuitBreakerConfig
- java.lang.Object
-
- io.openlineage.client.circuitBreaker.SimpleMemoryCircuitBreakerConfig
-
- All Implemented Interfaces:
CircuitBreakerConfig
,MergeConfig<SimpleMemoryCircuitBreakerConfig>
public final class SimpleMemoryCircuitBreakerConfig extends java.lang.Object implements CircuitBreakerConfig, MergeConfig<SimpleMemoryCircuitBreakerConfig>
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MEMORY_THRESHOLD
-
Constructor Summary
Constructors Constructor Description SimpleMemoryCircuitBreakerConfig()
SimpleMemoryCircuitBreakerConfig(int memoryThreshold)
SimpleMemoryCircuitBreakerConfig(int memoryThreshold, int circuitCheckIntervalInMillis)
SimpleMemoryCircuitBreakerConfig(java.lang.Integer memoryThreshold, java.lang.Integer circuitCheckIntervalInMillis, java.lang.Integer timeoutInSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Integer
getCircuitCheckIntervalInMillis()
java.lang.Integer
getMemoryThreshold()
java.lang.Integer
getTimeoutInSeconds()
int
hashCode()
SimpleMemoryCircuitBreakerConfig
mergeWithNonNull(SimpleMemoryCircuitBreakerConfig other)
Method to create new config class based on current instance and non-null argument value.void
setCircuitCheckIntervalInMillis(java.lang.Integer circuitCheckIntervalInMillis)
void
setMemoryThreshold(java.lang.Integer memoryThreshold)
void
setTimeoutInSeconds(java.lang.Integer timeoutInSeconds)
java.lang.String
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 Detail
-
DEFAULT_MEMORY_THRESHOLD
public static final int DEFAULT_MEMORY_THRESHOLD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleMemoryCircuitBreakerConfig
public SimpleMemoryCircuitBreakerConfig(int memoryThreshold)
-
SimpleMemoryCircuitBreakerConfig
public SimpleMemoryCircuitBreakerConfig(int memoryThreshold, int circuitCheckIntervalInMillis)
-
SimpleMemoryCircuitBreakerConfig
public SimpleMemoryCircuitBreakerConfig()
-
SimpleMemoryCircuitBreakerConfig
public SimpleMemoryCircuitBreakerConfig(java.lang.Integer memoryThreshold, java.lang.Integer circuitCheckIntervalInMillis, java.lang.Integer timeoutInSeconds)
-
-
Method Detail
-
mergeWithNonNull
public SimpleMemoryCircuitBreakerConfig mergeWithNonNull(SimpleMemoryCircuitBreakerConfig other)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getMemoryThreshold
public java.lang.Integer getMemoryThreshold()
-
setMemoryThreshold
public void setMemoryThreshold(java.lang.Integer memoryThreshold)
-
getCircuitCheckIntervalInMillis
public java.lang.Integer getCircuitCheckIntervalInMillis()
-
setCircuitCheckIntervalInMillis
public void setCircuitCheckIntervalInMillis(java.lang.Integer circuitCheckIntervalInMillis)
-
getTimeoutInSeconds
public java.lang.Integer getTimeoutInSeconds()
-
setTimeoutInSeconds
public void setTimeoutInSeconds(java.lang.Integer timeoutInSeconds)
-
-