Class ExecutorCircuitBreaker
- java.lang.Object
-
- io.openlineage.client.circuitBreaker.ExecutorCircuitBreaker
-
- All Implemented Interfaces:
CircuitBreaker
- Direct Known Subclasses:
JavaRuntimeCircuitBreaker
,NoOpCircuitBreaker
,SimpleMemoryCircuitBreaker
,StaticCircuitBreaker
public abstract class ExecutorCircuitBreaker extends java.lang.Object implements CircuitBreaker
-
-
Field Summary
-
Fields inherited from interface io.openlineage.client.circuitBreaker.CircuitBreaker
CIRCUIT_CHECK_INTERVAL_IN_MILLIS
-
-
Constructor Summary
Constructors Constructor Description ExecutorCircuitBreaker(java.lang.Integer circuitCheckIntervalInMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCheckIntervalMillis()
protected boolean
isPercentageValueValid(java.lang.Integer value)
<T> T
run(java.util.concurrent.Callable<T> callable)
Runs callable and breaks it when circuit breaker is closed-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openlineage.client.circuitBreaker.CircuitBreaker
currentState
-
-
-
-
Method Detail
-
run
public <T> T run(java.util.concurrent.Callable<T> callable)
Description copied from interface:CircuitBreaker
Runs callable and breaks it when circuit breaker is closed- Specified by:
run
in interfaceCircuitBreaker
- Returns:
-
getCheckIntervalMillis
public int getCheckIntervalMillis()
- Specified by:
getCheckIntervalMillis
in interfaceCircuitBreaker
-
isPercentageValueValid
protected boolean isPercentageValueValid(java.lang.Integer value)
-
-