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

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

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

revision 452 by torben, Tue Oct 20 10:47:36 2009 UTC revision 456 by torben, Tue Oct 20 20:42:36 2009 UTC
# Line 104  public class CircuitBreaker{ Line 104  public class CircuitBreaker{
104      public void reset() {      public void reset() {
105          synchronized(this) {          synchronized(this) {
106                  if (currentState != closed) { // TODO: Is this conditional necessary ??                  if (currentState != closed) { // TODO: Is this conditional necessary ??
107                            closed.resetFailureCount();
108                          currentState = closed;                          currentState = closed;
109                          notifier.sendNotification(name, Notifier.Event.BreakerReset);                          notifier.sendNotification(name, Notifier.Event.BreakerReset);
110                  }                  }

Legend:
Removed from v.452  
changed lines
  Added in v.456

  ViewVC Help
Powered by ViewVC 1.1.20