/[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 396 by torben, Mon Oct 5 19:44:40 2009 UTC revision 397 by torben, Tue Oct 6 05:22:40 2009 UTC
# Line 34  public class ClosedState implements Circ Line 34  public class ClosedState implements Circ
34      private void resetFailureCount() {      private void resetFailureCount() {
35          failureCount.set(0);          failureCount.set(0);
36      }      }
37    
38            public String getName() {
39                    return "Closed";
40            }
41            
42            public int getFailureCount() {
43                    return failureCount.get();
44            }
45            
46            public int getThreshold() {
47                    return failureThreshold.get();
48            }
49  }  }

Legend:
Removed from v.396  
changed lines
  Added in v.397

  ViewVC Help
Powered by ViewVC 1.1.20