1 |
package dk.daoas.daoadresseservice.admin; |
package dk.daoas.daoadresseservice.admin; |
2 |
|
|
3 |
|
import dk.thoerup.circuitbreaker.config.BreakerConfig; |
4 |
import dk.thoerup.webconfig.ConfigVariable; |
import dk.thoerup.webconfig.ConfigVariable; |
5 |
|
|
6 |
|
|
7 |
|
|
8 |
public class ServiceConfig { |
public class ServiceConfig implements BreakerConfig { |
9 |
|
|
10 |
@ConfigVariable |
@ConfigVariable |
11 |
public boolean useGoogle; |
public boolean useGoogle; |
13 |
@ConfigVariable |
@ConfigVariable |
14 |
public boolean useOpenStreetMaps; |
public boolean useOpenStreetMaps; |
15 |
|
|
16 |
|
@ConfigVariable(mandatory=false) |
17 |
|
public boolean useMetaphone = false; //default false |
18 |
|
|
19 |
|
@ConfigVariable |
20 |
|
public int osmTimeout; |
21 |
|
|
22 |
@ConfigVariable(mandatory=false, readonly=true) |
@ConfigVariable(mandatory=false, readonly=true) |
23 |
public String googleApiUser; |
public String googleApiUser; |
24 |
|
|
25 |
@ConfigVariable(mandatory=false, hideValue=true) |
@ConfigVariable(mandatory=false, hideValue=true) |
26 |
public String googleApiKey; |
public String googleApiKey; |
27 |
|
|
28 |
|
@ConfigVariable |
29 |
|
public String nominatimBase; |
30 |
|
|
31 |
|
@ConfigVariable(mandatory=false) |
32 |
|
public String notifyEmail; |
33 |
|
|
34 |
|
@Override |
35 |
|
public int getTimeout() { |
36 |
|
return 60000; |
37 |
|
} |
38 |
|
|
39 |
|
@Override |
40 |
|
public int getTreshold() { |
41 |
|
return 5; |
42 |
|
} |
43 |
|
|
44 |
} |
} |