1 |
package dk.daoas.daoadresseservice.admin;
|
2 |
|
3 |
import dk.thoerup.circuitbreaker.config.BreakerConfig;
|
4 |
import dk.thoerup.webconfig.ConfigVariable;
|
5 |
|
6 |
|
7 |
|
8 |
public class ServiceConfig implements BreakerConfig {
|
9 |
|
10 |
@ConfigVariable
|
11 |
public boolean useGoogle;
|
12 |
|
13 |
@ConfigVariable
|
14 |
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)
|
23 |
public String googleApiUser;
|
24 |
|
25 |
@ConfigVariable(mandatory=false, hideValue=true)
|
26 |
public String googleApiKey;
|
27 |
|
28 |
@ConfigVariable
|
29 |
public String nominatimBase;
|
30 |
|
31 |
@ConfigVariable(mandatory=false)
|
32 |
public String notifyEmail;
|
33 |
|
34 |
|
35 |
//Styrer om vi må bruge nærmeste litra hvis der ikke var direkte match herpå
|
36 |
@ConfigVariable(mandatory=false)
|
37 |
public boolean nearestLitra = true;
|
38 |
|
39 |
@Override
|
40 |
public int getTimeout() {
|
41 |
return 60000;
|
42 |
}
|
43 |
|
44 |
@Override
|
45 |
public int getTreshold() {
|
46 |
return 5;
|
47 |
}
|
48 |
|
49 |
}
|