Class ExecutorCircuitBreaker
java.lang.Object
io.openlineage.client.circuitBreaker.ExecutorCircuitBreaker
- All Implemented Interfaces:
CircuitBreaker
- Direct Known Subclasses:
JavaRuntimeCircuitBreaker
,NoOpCircuitBreaker
,SimpleMemoryCircuitBreaker
,StaticCircuitBreaker
-
Field Summary
Fields inherited from interface io.openlineage.client.circuitBreaker.CircuitBreaker
CIRCUIT_CHECK_INTERVAL_IN_MILLIS
-
Constructor Summary
ConstructorDescriptionExecutorCircuitBreaker
(Integer circuitCheckIntervalInMillis) ExecutorCircuitBreaker
(Integer circuitCheckIntervalInMillis, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionint
protected boolean
isPercentageValueValid
(Integer value) <T> T
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
-
Field Details
-
timeout
-
-
Constructor Details
-
ExecutorCircuitBreaker
-
ExecutorCircuitBreaker
-
-
Method Details
-
run
- Specified by:
run
in interfaceCircuitBreaker
- Type Parameters:
T
- callable generic type- Parameters:
callable
- The callable to be run- Returns:
- result of callable
-
getCheckIntervalMillis
public int getCheckIntervalMillis()- Specified by:
getCheckIntervalMillis
in interfaceCircuitBreaker
-
getTimeout
-
isPercentageValueValid
-