--- CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java 2010/03/08 10:12:59 627 +++ CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java 2010/06/20 21:54:53 864 @@ -92,6 +92,18 @@ } } + //a re-trip should basically do the same as a normal trip, but it is here just to differentiate the two different events + public void retripBreaker() { + synchronized(this) { + if (currentState != open) { // TODO:Is this conditional necessary ?? + open.trip(); + currentState = open; + + notifier.sendNotification(name, Notifier.Event.BreakerRetripped); + } + } + } + public void attemptReset() { synchronized(this) { if (currentState != halfOpen) { // TODO:Is this conditional necessary ??