org.qi4j.library.circuitbreaker
Class CircuitBreakers

java.lang.Object
  extended by org.qi4j.library.circuitbreaker.CircuitBreakers

public class CircuitBreakers
extends Object

CircuitBreaker helper methods.


Constructor Summary
CircuitBreakers()
           
 
Method Summary
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>
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
 

Constructor Detail

CircuitBreakers

public CircuitBreakers()
Method Detail

withBreaker

public static <Item,ReceiverThrowable extends Throwable> Output<Item,ReceiverThrowable> withBreaker(CircuitBreaker breaker,
                                                                                                    Output<Item,ReceiverThrowable> output)

in

public static Specification<Throwable> in(Class<? extends Throwable>... throwables)
Allow all throwables that are equal to or subclasses of given list of throwables.

Parameters:
throwables -
Returns:

rootCause

public static Specification<Throwable> rootCause(Specification<Throwable> specification)