Uses of Class
io.vertx.reactivex.circuitbreaker.CircuitBreaker
Packages that use CircuitBreaker
-
Uses of CircuitBreaker in io.vertx.reactivex.circuitbreaker
Fields in io.vertx.reactivex.circuitbreaker with type parameters of type CircuitBreakerModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<CircuitBreaker> CircuitBreaker.__TYPE_ARGMethods in io.vertx.reactivex.circuitbreaker that return CircuitBreakerModifier and TypeMethodDescriptionCircuitBreaker.close()Closes the circuit breaker.CircuitBreaker.closeHandler(Handler<Void> handler) Sets a to 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, CircuitBreakerOptions options) Creates a new instance ofCircuitBreaker.<T> CircuitBreakerCircuitBreaker.executeAndReport(Promise<T> resultPromise, Handler<Promise<T>> command) Same asCircuitBreaker.executeAndReportWithFallback(Promise, Handler, Function)but using the circuit breaker .<T> CircuitBreakerCircuitBreaker.executeAndReportWithFallback(Promise<T> resultPromise, Handler<Promise<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 fallback to be invoked when the circuit breaker is open or when failure occurs andCircuitBreakerOptionsis enabled.CircuitBreaker.halfOpenHandler(Handler<Void> handler) Sets a to be invoked when the circuit breaker state switches to half-open.static CircuitBreakerCircuitBreaker.newInstance(CircuitBreaker arg) CircuitBreaker.open()Explicitly opens the circuit breaker.CircuitBreaker.openHandler(Handler<Void> handler) Sets a to 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.