--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java 2009/10/05 19:44:40 393 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/CircuitBreaker.java 2009/10/05 19:54:25 395 @@ -2,10 +2,12 @@ import java.util.logging.Logger; +/* Simple CircuitBreaker implementation - snipped from http://www.jroller.com/kenwdelong/entry/circuit_breaker_in_java + * + * example of how it can be used - -/* example of how it can be used -protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + private CircuitBreaker cb = new CircuitBreaker("test", 5, 10000); + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { class TestInvocation implements CircuitInvocation { String url; public TestInvocation(String url) {