Uses of Class
io.vertx.mutiny.circuitbreaker.CircuitBreaker
Packages that use CircuitBreaker
-
Uses of CircuitBreaker in io.vertx.mutiny.circuitbreaker
Fields in io.vertx.mutiny.circuitbreaker with type parameters of type CircuitBreakerMethods in io.vertx.mutiny.circuitbreaker that return CircuitBreakerModifier and TypeMethodDescriptionCircuitBreaker.close()Closes the circuit breaker.CircuitBreaker.closeHandler(Runnable handler) Sets aHandlerto be invoked when the circuit breaker state switches to closed.static CircuitBreakerCreates a new instance ofCircuitBreaker, with default options.static CircuitBreakerCircuitBreaker.create(String name, Vertx vertx, io.vertx.circuitbreaker.CircuitBreakerOptions options) Creates a new instance ofCircuitBreaker.<T> CircuitBreakerCircuitBreaker.executeAndForget(io.smallrye.mutiny.Uni<T> command) Same as#executeWithFallback(Handler, Function)but using the circuit breaker default fallback.<T> CircuitBreakerCircuitBreaker.executeAndForget(Supplier<io.smallrye.mutiny.Uni<T>> command) Same asexecuteWithFallback(Supplier, Function)but using the circuit breaker default fallback.<T> CircuitBreakerCircuitBreaker.executeAndReport(Promise<T> resultPromise, io.smallrye.mutiny.Uni<T> command) Same as#executeAndReportWithFallback(Promise, Handler, Function)but using the circuit breaker default fallback.<T> CircuitBreakerCircuitBreaker.executeAndReportWithFallback(Promise<T> resultPromise, io.smallrye.mutiny.Uni<T> command, Function<Throwable, T> fallback) Executes the given operation with the circuit breaker control.<T> CircuitBreakerCircuitBreaker.executeWithFallbackAndForget(io.smallrye.mutiny.Uni<T> command, Function<Throwable, T> fallback) Executes the given operation with the circuit breaker control.<T> CircuitBreakerCircuitBreaker.executeWithFallbackAndForget(Supplier<io.smallrye.mutiny.Uni<T>> command, Function<Throwable, T> fallback) Executes the given operation with the circuit breaker control.<T> CircuitBreakerCircuitBreaker.failurePolicy(FailurePolicy<T> failurePolicy) Configures the failure policy for this circuit-breaker.<T> CircuitBreakerSets a default fallbackFunctionto be invoked when the circuit breaker is open or when failure occurs andCircuitBreakerOptions.isFallbackOnFailure()is enabled.CircuitBreaker.halfOpenHandler(Runnable handler) Sets aHandlerto be invoked when the circuit breaker state switches to half-open.static CircuitBreakerCircuitBreaker.newInstance(io.vertx.circuitbreaker.CircuitBreaker delegate) Creates a new instance of theCircuitBreaker.CircuitBreaker.open()Explicitly opens the circuit breaker.CircuitBreaker.openHandler(Runnable handler) Sets aHandlerto be invoked when the circuit breaker state switches to open.CircuitBreaker.reset()Resets the circuit breaker state.CircuitBreaker.retryPolicy(RetryPolicy retryPolicy) Set aRetryPolicywhich computes a delay before a retry attempt.