--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/AccountingCircuitBreaker.java 2009/10/07 04:14:14 403 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/AccountingCircuitBreaker.java 2009/10/07 04:17:45 404 @@ -9,7 +9,7 @@ private AtomicInteger totalFailureCount = new AtomicInteger(0); //how many times has the backend thrown an exception private AtomicInteger totalCallCount = new AtomicInteger(0); - private long lastReset = 0; + private long lastResetCounters = 0; public AccountingCircuitBreaker(String name, int threshold, long timeoutMS) { super(name, threshold, timeoutMS); @@ -51,8 +51,8 @@ return totalFailureCount.get(); } - public long getLastReset() { - return lastReset; + public long getLastResetCounters() { + return lastResetCounters; } public int getTotalCallCount() { @@ -65,7 +65,7 @@ totalFailureCount.set(0); totalCallCount.set(0); - lastReset = System.currentTimeMillis(); + lastResetCounters = System.currentTimeMillis(); } }