--- miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/ClosedState.java 2017/09/18 18:06:48 3211 +++ miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/ClosedState.java 2017/12/28 09:34:47 3212 @@ -17,17 +17,17 @@ this.config = config; } - public void preInvoke(CircuitBreaker circuitBreaker) throws Exception + public void preInvoke(CircuitBreaker circuitBreaker) throws Exception { // NO OP } - public void postInvoke(CircuitBreaker circuitBreaker) throws Exception + public void postInvoke(CircuitBreaker circuitBreaker) throws Exception { resetFailureCount(); } - public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception + public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception { int currentCount = failureCount.incrementAndGet(); int threshold = config.getTreshold();