CircuitBreaker.Builder |
CircuitBreaker.Builder.addApplyOn(Class<? extends Throwable> clazz) |
Add a throwable to be considered a failure.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.addSkipOn(Class<? extends Throwable> clazz) |
This throwable will not be considered failure.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.applyOn(Class<? extends Throwable>... classes) |
These throwables will be considered failures, and all other will not.
|
static CircuitBreaker.Builder |
CircuitBreaker.builder() |
Builder to customize configuration of the breaker.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.cancelSource(boolean cancelSource) |
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.config(Config config) |
Load all properties for this circuit breaker from configuration.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.delay(Duration delay) |
How long to wait before transitioning from open to half-open state.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.errorRatio(int ratio) |
How many failures out of 100 will trigger the circuit to open.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.executor(ScheduledExecutorService scheduledExecutor) |
Executor service to schedule future tasks.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.name(String name) |
A name assigned for debugging, error reporting or configuration purposes.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.skipOn(Class<? extends Throwable>... classes) |
These throwables will not be considered failures, all other will.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.successThreshold(int successThreshold) |
How many successful calls will close a half-open circuit.
|
CircuitBreaker.Builder |
CircuitBreaker.Builder.volume(int volume) |
Rolling window size used to calculate ratio of failed requests.
|