/[projects]/CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java
ViewVC logotype

Diff of /CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java

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

revision 449 by torben, Thu Oct 8 20:39:39 2009 UTC revision 450 by torben, Tue Oct 20 10:26:50 2009 UTC
# Line 13  public final class ClosedState implement Line 13  public final class ClosedState implement
13                  failureThreshold.set( threshold );                  failureThreshold.set( threshold );
14          }          }
15    
16      public void preInvoke(CircuitBreaker circuitBreaker) throws Throwable      public void preInvoke(CircuitBreaker circuitBreaker) throws Exception
17      {      {
18          // NO OP          // NO OP
19      }      }
20    
21      public void postInvoke(CircuitBreaker circuitBreaker) throws Throwable      public void postInvoke(CircuitBreaker circuitBreaker) throws Exception
22      {      {
23          resetFailureCount();          resetFailureCount();
24      }      }
25    
26      public void onError(CircuitBreaker circuitBreaker, Throwable t) throws Throwable      public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception
27      {      {
28          int currentCount = failureCount.incrementAndGet();          int currentCount = failureCount.incrementAndGet();
29          int threshold = failureThreshold.get();          int threshold = failureThreshold.get();

Legend:
Removed from v.449  
changed lines
  Added in v.450

  ViewVC Help
Powered by ViewVC 1.1.20