/[projects]/CircuitBreaker/src/dk/thoerup/circuitbreaker/config/StaticConfig.java
ViewVC logotype

Contents of /CircuitBreaker/src/dk/thoerup/circuitbreaker/config/StaticConfig.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1306 - (show annotations) (download)
Tue Apr 19 15:22:09 2011 UTC (13 years, 1 month ago) by torben
File size: 339 byte(s)
Switch to BreakerConfig method this way it is possible to control the breaker dynamically
1 package dk.thoerup.circuitbreaker.config;
2
3 public class StaticConfig implements BreakerConfig {
4
5 int treshold;
6 int timeout;
7
8 public StaticConfig(int treshold, int timeout) {
9 this.treshold = treshold;
10 this.timeout = timeout;
11 }
12
13 public int getTreshold() {
14 return treshold;
15 }
16
17 public int getTimeout() {
18 return timeout;
19 }
20
21 }

  ViewVC Help
Powered by ViewVC 1.1.20