Parent Directory
|
Revision Log
Switch to BreakerConfig method this way it is possible to control the breaker dynamically
1 | torben | 1306 | 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 |