Uses of Interface
io.smallrye.faulttolerance.api.TypedGuard.Builder.CircuitBreakerBuilder
-
Uses of TypedGuard.Builder.CircuitBreakerBuilder in io.smallrye.faulttolerance.api
Methods in io.smallrye.faulttolerance.api that return TypedGuard.Builder.CircuitBreakerBuilderModifier and TypeMethodDescriptionTypedGuard.Builder.CircuitBreakerBuilder.delay(long value, ChronoUnit unit) Sets the delay after which an open circuit moves to half-open.Equivalent tofailOn(Set.of(value)).TypedGuard.Builder.CircuitBreakerBuilder.failOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered failure.TypedGuard.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.TypedGuard.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.TypedGuard.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.TypedGuard.Builder.CircuitBreakerBuilder.requestVolumeThreshold(int value) Sets the size of the circuit breaker's rolling window.Equivalent toskipOn(Set.of(value)).TypedGuard.Builder.CircuitBreakerBuilder.skipOn(Collection<Class<? extends Throwable>> value) Sets the set of exception types considered success.TypedGuard.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.TypedGuard.Builder.CircuitBreakerBuilder.with(Consumer<TypedGuard.Builder.CircuitBreakerBuilder<T>> consumer) TypedGuard.Builder.withCircuitBreaker()Adds a circuit breaker strategy.Method parameters in io.smallrye.faulttolerance.api with type arguments of type TypedGuard.Builder.CircuitBreakerBuilderModifier and TypeMethodDescriptionTypedGuard.Builder.CircuitBreakerBuilder.with(Consumer<TypedGuard.Builder.CircuitBreakerBuilder<T>> consumer)