11 |
|
|
12 |
|
|
13 |
public class TraininfoSettings implements BreakerConfig{ |
public class TraininfoSettings implements BreakerConfig{ |
14 |
|
public enum Backend { |
15 |
|
Azure, |
16 |
|
Mobile |
17 |
|
} |
18 |
|
|
19 |
Logger logger = Logger.getLogger(TraininfoSettings.class.getName() ); |
Logger logger = Logger.getLogger(TraininfoSettings.class.getName() ); |
20 |
|
|
21 |
@ConfigVariable |
@ConfigVariable |
22 |
boolean useazuresite; |
Backend backend; |
23 |
|
|
24 |
@ConfigVariable(description = "Circuitbreaker", readonly = true) |
@ConfigVariable(description = "Circuitbreaker", readonly = true) |
25 |
int banedk_threshold; |
int banedk_threshold; |
37 |
int reply_timeout; |
int reply_timeout; |
38 |
|
|
39 |
|
|
40 |
public boolean getUseAzureSite() { |
public Backend getBackend() { |
41 |
return useazuresite; |
return backend; |
42 |
} |
} |
43 |
|
|
44 |
|
|