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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionJavaRuntimeCircuitBreakerConfig
(int memoryThreshold, int gcCpuThreshold) JavaRuntimeCircuitBreakerConfig
(int memoryThreshold, int gcCpuThreshold, int circuitCheckIntervalInMillis) JavaRuntimeCircuitBreakerConfig
(Integer memoryThreshold, Integer gcCpuThreshold, 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
setGcCpuThreshold
(Integer gcCpuThreshold) 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:
-
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
-
-
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<JavaRuntimeCircuitBreakerConfig>
- Parameters:
other
- overwrite value- Returns:
- merged config entry
-
toString
-
equals
-
hashCode
public int hashCode() -
getMemoryThreshold
-
setMemoryThreshold
-
getGcCpuThreshold
-
setGcCpuThreshold
-
getCircuitCheckIntervalInMillis
-
setCircuitCheckIntervalInMillis
-
getTimeoutInSeconds
-
setTimeoutInSeconds
-