public CircuitBreaker(){
  failureConditions=new ArrayList<BiPredicate<Object,Throwable>>();
  state.set(new ClosedState(this));
}

public CircuitBreaker ( ) { failureConditions = new ArrayList < BiPredicate < Object , Throwable > > ( ) ; state . set ( new ClosedState ( this ) ) ; }
creates a circuit that opens after a single failure , closes after a single success , and has no delay by default .
