Uses of Interface
io.smallrye.faulttolerance.api.Guard.Builder.CircuitBreakerBuilder
-
Uses of Guard.Builder.CircuitBreakerBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return Guard.Builder.CircuitBreakerBuilderModifier and TypeMethodDescriptionGuard.Builder.CircuitBreakerBuilder.delay(long value, ChronoUnit unit) Sets the delay after which an open circuit moves to half-open.Equivalent tofailOn(Set.of(value)).Guard.Builder.CircuitBreakerBuilder.failOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered failure.Guard.Builder.CircuitBreakerBuilder.failureRatio(double value) Sets the failure ratio that, once reached, will move a closed circuit breaker to open.Sets a circuit breaker name.Sets a callback that will be invoked when this circuit breaker treats a finished invocation as failure.Guard.Builder.CircuitBreakerBuilder.onPrevented(Runnable callback) Sets a callback that will be invoked when this circuit breaker prevents an invocation, because it is in the open or half-open state.Guard.Builder.CircuitBreakerBuilder.onStateChange(Consumer<CircuitBreakerState> callback) Sets a callback that will be invoked upon each state change of this circuit breaker.Sets a callback that will be invoked when this circuit breaker treats a finished invocation as success.Guard.Builder.CircuitBreakerBuilder.requestVolumeThreshold(int value) Sets the size of the circuit breaker's rolling window.Equivalent toskipOn(Set.of(value)).Guard.Builder.CircuitBreakerBuilder.skipOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered success.Guard.Builder.CircuitBreakerBuilder.successThreshold(int value) Sets the number of successful executions that, once reached, will move a half-open circuit breaker to closed.Sets a predicate to determine when an exception should be considered failure by the circuit breaker.Guard.Builder.CircuitBreakerBuilder.with(Consumer<Guard.Builder.CircuitBreakerBuilder> consumer) Guard.Builder.withCircuitBreaker()Adds a circuit breaker strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type Guard.Builder.CircuitBreakerBuilderModifier and TypeMethodDescriptionGuard.Builder.CircuitBreakerBuilder.with(Consumer<Guard.Builder.CircuitBreakerBuilder> consumer)