package dk.thoerup.curcuitbreaker; public interface CircuitBreakerState { public void preInvoke(CircuitBreaker cb) throws Throwable; public void postInvoke(CircuitBreaker cb) throws Throwable; public void onError(CircuitBreaker cb, Throwable t) throws Throwable; public String getName(); }