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