Uses of Class
io.helidon.faulttolerance.CircuitBreaker.Builder
Package
Description
Fault tolerance for Helidon SE reactive implementation.
-
Uses of CircuitBreaker.Builder in io.helidon.faulttolerance
Modifier and TypeMethodDescriptionCircuitBreaker.Builder.addApplyOn
(Class<? extends Throwable> clazz) Add a throwable to be considered a failure.This throwable will not be considered failure.final CircuitBreaker.Builder
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.cancelSource
(boolean cancelSource) Policy to cancel any source stage if the value return byFtHandler.invoke(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<T>>)
is cancelled.Load all properties for this circuit breaker from configuration.How long to wait before transitioning from open to half-open state.CircuitBreaker.Builder.errorRatio
(int ratio) How many failures out of 100 will trigger the circuit to open.CircuitBreaker.Builder.executor
(ScheduledExecutorService scheduledExecutor) Executor service to schedule future tasks.A name assigned for debugging, error reporting or configuration purposes.final CircuitBreaker.Builder
These throwables will not be considered failures, all other will.CircuitBreaker.Builder.successThreshold
(int successThreshold) How many successful calls will close a half-open circuit.CircuitBreaker.Builder.volume
(int volume) Rolling window size used to calculate ratio of failed requests.