public class CircuitBreakers extends Object
| Constructor and Description |
|---|
CircuitBreakers() |
| Modifier and Type | Method and Description |
|---|---|
static Specification<Throwable> |
in(Class<? extends Throwable>... throwables)
Allow all throwables that are equal to or subclasses of given list of throwables.
|
static Specification<Throwable> |
rootCause(Specification<Throwable> specification) |
static <Item,ReceiverThrowable extends Throwable> |
withBreaker(CircuitBreaker breaker,
Output<Item,ReceiverThrowable> output) |
public static <Item,ReceiverThrowable extends Throwable> Output<Item,ReceiverThrowable> withBreaker(CircuitBreaker breaker, Output<Item,ReceiverThrowable> output)
public static Specification<Throwable> in(Class<? extends Throwable>... throwables)
throwables - The Throwable types that are allowed.public static Specification<Throwable> rootCause(Specification<Throwable> specification)