Uses of Interface
io.vertx.circuitbreaker.CircuitBreaker
-
Packages that use CircuitBreaker Package Description io.vertx.circuitbreaker io.vertx.reactivex.circuitbreaker io.vertx.rxjava3.circuitbreaker -
-
Uses of CircuitBreaker in io.vertx.circuitbreaker
Methods in io.vertx.circuitbreaker that return CircuitBreaker Modifier and Type Method Description CircuitBreaker
CircuitBreaker. close()
Closes the circuit breaker.CircuitBreaker
CircuitBreaker. closeHandler(Handler<Void> handler)
Sets aHandler
to be invoked when the circuit breaker state switches to closed.static CircuitBreaker
CircuitBreaker. create(String name, Vertx vertx)
Creates a new instance ofCircuitBreaker
, with default options.static CircuitBreaker
CircuitBreaker. create(String name, Vertx vertx, CircuitBreakerOptions options)
Creates a new instance ofCircuitBreaker
.<T> CircuitBreaker
CircuitBreaker. executeAndReport(Promise<T> resultPromise, Handler<Promise<T>> command)
Same asexecuteAndReportWithFallback(Promise, Handler, Function)
but using the circuit breaker default fallback.<T> CircuitBreaker
CircuitBreaker. executeAndReportWithFallback(Promise<T> resultPromise, Handler<Promise<T>> command, java.util.function.Function<Throwable,T> fallback)
Executes the given operation with the circuit breaker control.default <T> CircuitBreaker
CircuitBreaker. failurePolicy(FailurePolicy<T> failurePolicy)
Configures the failure policy for this circuit-breaker.<T> CircuitBreaker
CircuitBreaker. fallback(java.util.function.Function<Throwable,T> handler)
Sets a default fallbackFunction
to be invoked when the circuit breaker is open or when failure occurs andCircuitBreakerOptions.isFallbackOnFailure()
is enabled.CircuitBreaker
CircuitBreaker. halfOpenHandler(Handler<Void> handler)
Sets aHandler
to be invoked when the circuit breaker state switches to half-open.CircuitBreaker
CircuitBreaker. open()
Explicitly opens the circuit breaker.CircuitBreaker
CircuitBreaker. openHandler(Handler<Void> handler)
Sets aHandler
to be invoked when the circuit breaker state switches to open.CircuitBreaker
CircuitBreaker. reset()
Resets the circuit breaker state.CircuitBreaker
CircuitBreaker. retryPolicy(RetryPolicy retryPolicy)
Set aRetryPolicy
which computes a delay before a retry attempt.CircuitBreaker
CircuitBreaker. retryPolicy(java.util.function.Function<Integer,Long> retryPolicy)
Deprecated.useretryPolicy(RetryPolicy)
instead -
Uses of CircuitBreaker in io.vertx.reactivex.circuitbreaker
Methods in io.vertx.reactivex.circuitbreaker that return CircuitBreaker Modifier and Type Method Description CircuitBreaker
CircuitBreaker. getDelegate()
Methods in io.vertx.reactivex.circuitbreaker with parameters of type CircuitBreaker Modifier and Type Method Description static CircuitBreaker
CircuitBreaker. newInstance(CircuitBreaker arg)
Constructors in io.vertx.reactivex.circuitbreaker with parameters of type CircuitBreaker Constructor Description CircuitBreaker(CircuitBreaker delegate)
-
Uses of CircuitBreaker in io.vertx.rxjava3.circuitbreaker
Methods in io.vertx.rxjava3.circuitbreaker that return CircuitBreaker Modifier and Type Method Description CircuitBreaker
CircuitBreaker. getDelegate()
Methods in io.vertx.rxjava3.circuitbreaker with parameters of type CircuitBreaker Modifier and Type Method Description static CircuitBreaker
CircuitBreaker. newInstance(CircuitBreaker arg)
Constructors in io.vertx.rxjava3.circuitbreaker with parameters of type CircuitBreaker Constructor Description CircuitBreaker(CircuitBreaker delegate)
-