/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/ClosedState.java
ViewVC logotype

Diff of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/ClosedState.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3211 by torben, Fri Mar 20 08:58:46 2015 UTC revision 3212 by torben, Thu Dec 28 09:34:47 2017 UTC
# Line 17  public final class ClosedState implement Line 17  public final class ClosedState implement
17                  this.config = config;                  this.config = config;
18          }          }
19    
20      public void preInvoke(CircuitBreaker circuitBreaker) throws Exception      public void preInvoke(CircuitBreaker<?> circuitBreaker) throws Exception
21      {      {
22          // NO OP          // NO OP
23      }      }
24    
25      public void postInvoke(CircuitBreaker circuitBreaker) throws Exception      public void postInvoke(CircuitBreaker<?> circuitBreaker) throws Exception
26      {      {
27          resetFailureCount();          resetFailureCount();
28      }      }
29    
30      public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception      public void onError(CircuitBreaker<?> circuitBreaker, Exception t) throws Exception
31      {      {
32          int currentCount = failureCount.incrementAndGet();          int currentCount = failureCount.incrementAndGet();
33          int threshold = config.getTreshold();          int threshold = config.getTreshold();

Legend:
Removed from v.3211  
changed lines
  Added in v.3212

  ViewVC Help
Powered by ViewVC 1.1.20