/[projects]/dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/admin/ServiceConfig.java
ViewVC logotype

Annotation of /dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/admin/ServiceConfig.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2778 - (hide annotations) (download)
Fri Nov 20 16:31:01 2015 UTC (8 years, 6 months ago) by torben
File size: 828 byte(s)
Implementer en (double)metaphone hjælper
1 torben 2346 package dk.daoas.daoadresseservice.admin;
2    
3 torben 2352 import dk.thoerup.circuitbreaker.config.BreakerConfig;
4 torben 2346 import dk.thoerup.webconfig.ConfigVariable;
5    
6    
7    
8 torben 2352 public class ServiceConfig implements BreakerConfig {
9 torben 2346
10     @ConfigVariable
11     public boolean useGoogle;
12    
13     @ConfigVariable
14     public boolean useOpenStreetMaps;
15    
16 torben 2367 @ConfigVariable
17 torben 2778 public boolean useMetaphone;
18    
19     @ConfigVariable
20 torben 2367 public int osmTimeout;
21    
22 torben 2349 @ConfigVariable(mandatory=false, readonly=true)
23     public String googleApiUser;
24    
25     @ConfigVariable(mandatory=false, hideValue=true)
26     public String googleApiKey;
27 torben 2368
28     @ConfigVariable
29     public String nominatimBase;
30 torben 2768
31     @ConfigVariable(mandatory=false)
32     public String notifyEmail;
33 torben 2352
34     @Override
35     public int getTimeout() {
36     return 60000;
37     }
38    
39     @Override
40     public int getTreshold() {
41     return 5;
42     }
43 torben 2349
44 torben 2346 }

  ViewVC Help
Powered by ViewVC 1.1.20