Parent Directory | Revision Log | 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 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |