/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/OpenState.java
ViewVC logotype

Diff of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/OpenState.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 424 by torben, Thu Oct 8 20:39:39 2009 UTC revision 450 by torben, Tue Oct 20 10:26:50 2009 UTC
# Line 12  public final class OpenState implements Line 12  public final class OpenState implements
12                  this.timeout.set( timeout );                  this.timeout.set( timeout );
13          }          }
14                    
15      public void preInvoke(CircuitBreaker circuitBreaker) throws Throwable      public void preInvoke(CircuitBreaker circuitBreaker) throws Exception
16      {      {
17          long now = System.currentTimeMillis();          long now = System.currentTimeMillis();
18          long elapsed = now - tripTime.get();          long elapsed = now - tripTime.get();
# Line 27  public final class OpenState implements Line 27  public final class OpenState implements
27          }          }
28      }      }
29    
30      public void postInvoke(CircuitBreaker circuitBreaker) throws Throwable      public void postInvoke(CircuitBreaker circuitBreaker) throws Exception
31      {      {
32          // NO OP          // NO OP
33      }      }
34    
35      public void onError(CircuitBreaker circuitBreaker, Throwable t) throws Throwable      public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception
36      {      {
37          // NO OP          // NO OP
38      }      }

Legend:
Removed from v.424  
changed lines
  Added in v.450

  ViewVC Help
Powered by ViewVC 1.1.20