public abstract class ExecutorCircuitBreaker extends java.lang.Object implements CircuitBreaker
CIRCUIT_CHECK_INTERVAL_IN_MILLIS| Constructor and Description |
|---|
ExecutorCircuitBreaker(java.lang.Integer circuitCheckIntervalInMillis) |
| Modifier and Type | Method and 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentStatepublic ExecutorCircuitBreaker(java.lang.Integer circuitCheckIntervalInMillis)
public <T> T run(java.util.concurrent.Callable<T> callable)
CircuitBreakerrun in interface CircuitBreakerpublic int getCheckIntervalMillis()
getCheckIntervalMillis in interface CircuitBreakerprotected boolean isPercentageValueValid(java.lang.Integer value)