Package | Description |
---|---|
dev.failsafe |
APIs for performing failsafe executions.
|
Modifier and Type | Method and Description |
---|---|
CircuitBreaker<R> |
CircuitBreakerBuilder.build()
Builds a new
CircuitBreaker using the builder's configuration. |
CircuitBreaker<?> |
CircuitBreakerOpenException.getCircuitBreaker()
Returns the
CircuitBreaker that caused the exception. |
static <R> CircuitBreaker<R> |
CircuitBreaker.ofDefaults()
Creates a count based CircuitBreaker that opens after a
single failure , closes after a single success , and has a 1
minute delay by default. |
Constructor and Description |
---|
CircuitBreakerOpenException(CircuitBreaker<?> circuitBreaker) |
Copyright © 2022. All rights reserved.