Package | Description |
---|---|
io.vertx.circuitbreaker | |
io.vertx.reactivex.circuitbreaker | |
io.vertx.rxjava.circuitbreaker |
Modifier and Type | Method and Description |
---|---|
CircuitBreakerOptions |
CircuitBreakerOptions.setFailuresRollingWindow(long failureRollingWindow)
Sets the rolling window used for metrics.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setFallbackOnFailure(boolean fallbackOnFailure)
Sets whether or not the fallback is executed on failure, even when the circuit is closed.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setMaxFailures(int maxFailures)
Sets the maximum number of failures before opening the circuit.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setMaxRetries(int maxRetries)
Configures the number of times the circuit breaker tries to redo the operation before failing.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setMetricsRollingBuckets(int metricsRollingBuckets)
Sets the configured number of buckets the rolling window is divided into.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setMetricsRollingWindow(long metricsRollingWindow)
Sets the rolling window used for metrics.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setNotificationAddress(String notificationAddress)
Sets the event bus address on which the circuit breaker publish its state change.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setNotificationPeriod(long notificationPeriod)
Configures the period in milliseconds where the circuit breaker send a notification on the event bus with its
current state.
|
CircuitBreakerOptions |
CircuitBreakerOptions.setResetTimeout(long resetTimeout)
Sets the time in ms before it attempts to re-close the circuit (by going to the half-open state).
|
CircuitBreakerOptions |
CircuitBreakerOptions.setTimeout(long timeoutInMs)
Sets the timeout in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
static CircuitBreaker |
CircuitBreaker.create(String name,
Vertx vertx,
CircuitBreakerOptions options)
Creates a new instance of
CircuitBreaker . |
static void |
CircuitBreakerOptionsConverter.fromJson(Iterable<Map.Entry<String,Object>> json,
CircuitBreakerOptions obj) |
static void |
CircuitBreakerOptionsConverter.toJson(CircuitBreakerOptions obj,
JsonObject json) |
static void |
CircuitBreakerOptionsConverter.toJson(CircuitBreakerOptions obj,
Map<String,Object> json) |
Constructor and Description |
---|
CircuitBreakerOptions(CircuitBreakerOptions other)
Creates a new instance of
CircuitBreakerOptions by copying the other instance. |
Modifier and Type | Method and Description |
---|---|
static CircuitBreaker |
CircuitBreaker.create(String name,
Vertx vertx,
CircuitBreakerOptions options)
Creates a new instance of
CircuitBreaker . |
Modifier and Type | Method and Description |
---|---|
static CircuitBreaker |
CircuitBreaker.create(String name,
Vertx vertx,
CircuitBreakerOptions options)
Creates a new instance of
CircuitBreaker . |
Copyright © 2021 Eclipse. All rights reserved.