/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/TraininfoSettings.java
ViewVC logotype

Contents of /android/TrainInfoService/src/dk/thoerup/traininfoservice/TraininfoSettings.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1316 - (show annotations) (download)
Tue Apr 19 17:17:09 2011 UTC (13 years ago) by torben
File size: 677 byte(s)
Move all parameters to TraininfoSettings & SettingsListener
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 }

  ViewVC Help
Powered by ViewVC 1.1.20