org.qi4j.library.circuitbreaker

## Class CircuitBreakers

- java.lang.Object
- - org.qi4j.library.circuitbreaker.CircuitBreakers

-     public class CircuitBreakers
      extends Object

  CircuitBreaker helper methods.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CircuitBreakers()`

  - ### Method Summary

    Methods
    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> 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` - The Throwable types that are allowed.
      Returns:
        A Specification that specifies the allowed Throwables.

    - #### rootCause

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