1 |
package dk.thoerup.traininfoservice; |
2 |
|
3 |
import dk.thoerup.circuitbreaker.config.BreakerConfig; |
4 |
|
5 |
|
6 |
public class TraininfoSettings implements BreakerConfig{ |
7 |
|
8 |
|
9 |
boolean useazuresite; |
10 |
|
11 |
int banedk_threshold; |
12 |
|
13 |
int banedk_timeout; |
14 |
|
15 |
int cache_timeout; |
16 |
|
17 |
int stats_interval; |
18 |
|
19 |
int reply_timeout; |
20 |
|
21 |
|
22 |
public boolean getUseAzureSite() { |
23 |
return useazuresite; |
24 |
} |
25 |
|
26 |
|
27 |
public int getCacheTimeout() { |
28 |
return cache_timeout; |
29 |
} |
30 |
|
31 |
public int getStatsInterval() { |
32 |
return stats_interval; |
33 |
} |
34 |
|
35 |
public int getReplyTimeout() { |
36 |
return reply_timeout; |
37 |
} |
38 |
|
39 |
|
40 |
@Override |
41 |
public int getTreshold() { |
42 |
return banedk_threshold; |
43 |
} |
44 |
|
45 |
@Override |
46 |
public int getTimeout() { |
47 |
return banedk_timeout; |
48 |
} |
49 |
} |