1 |
package dk.thoerup.traininfoservice; |
package dk.thoerup.traininfoservice; |
2 |
|
|
3 |
|
import dk.thoerup.circuitbreaker.config.BreakerConfig; |
4 |
|
|
5 |
public class TraininfoSettings { |
|
6 |
|
public class TraininfoSettings implements BreakerConfig{ |
7 |
|
|
8 |
|
|
9 |
boolean useazuresite; |
boolean useazuresite; |
23 |
return useazuresite; |
return useazuresite; |
24 |
} |
} |
25 |
|
|
|
/* public int getBanedkThreshold() { |
|
|
return banedk_threshold; |
|
|
} |
|
|
|
|
|
public int getBanedkTimeout() { |
|
|
return banedk_timeout; |
|
|
}*/ |
|
26 |
|
|
27 |
public int getCacheTimeout() { |
public int getCacheTimeout() { |
28 |
return cache_timeout; |
return cache_timeout; |
29 |
} |
} |
30 |
/* |
|
31 |
public int getStatsInterval() { |
public int getStatsInterval() { |
32 |
return stats_interval; |
return stats_interval; |
33 |
}*/ |
} |
34 |
|
|
35 |
public int getReplyTimeout() { |
public int getReplyTimeout() { |
36 |
return reply_timeout; |
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 |
} |
} |