org.qi4j.library.circuitbreaker
Class CircuitBreakers
java.lang.Object
org.qi4j.library.circuitbreaker.CircuitBreakers
public class CircuitBreakers
- extends java.lang.Object
CircuitBreaker helper methods.
Method Summary |
static Specification<java.lang.Throwable> |
in(java.lang.Class<? extends java.lang.Throwable>... throwables)
Allow all throwables that are equal to or subclasses of given list of throwables. |
static Specification<java.lang.Throwable> |
rootCause(Specification<java.lang.Throwable> specification)
|
static
<Item,ReceiverThrowable extends java.lang.Throwable>
Output<Item,ReceiverThrowable> |
|
withBreaker(CircuitBreaker breaker,
Output<Item,ReceiverThrowable> output)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircuitBreakers
public CircuitBreakers()
withBreaker
public static <Item,ReceiverThrowable extends java.lang.Throwable> Output<Item,ReceiverThrowable> withBreaker(CircuitBreaker breaker,
Output<Item,ReceiverThrowable> output)
in
public static Specification<java.lang.Throwable> in(java.lang.Class<? extends java.lang.Throwable>... throwables)
- Allow all throwables that are equal to or subclasses of given list of throwables.
- Parameters:
throwables
- The Throwable types that are allowed.
- Returns:
- A Specification that specifies the allowed Throwables.
rootCause
public static Specification<java.lang.Throwable> rootCause(Specification<java.lang.Throwable> specification)