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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2346 by torben, Mon Feb 23 14:39:49 2015 UTC revision 2368 by torben, Tue Feb 24 13:00:46 2015 UTC
# Line 1  Line 1 
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;
# Line 12  public class ServiceConfig { Line 13  public class ServiceConfig {
13          @ConfigVariable          @ConfigVariable
14          public boolean useOpenStreetMaps;          public boolean useOpenStreetMaps;
15                    
16            @ConfigVariable
17            public int osmTimeout;
18            
19            @ConfigVariable(mandatory=false, readonly=true)
20            public String googleApiUser;
21            
22            @ConfigVariable(mandatory=false, hideValue=true)
23            public String googleApiKey;
24            
25            @ConfigVariable
26            public String nominatimBase;
27    
28            @Override
29            public int getTimeout() {
30                    return 60000;
31            }
32    
33            @Override
34            public int getTreshold() {
35                    return 5;
36            }
37            
38  }  }

Legend:
Removed from v.2346  
changed lines
  Added in v.2368

  ViewVC Help
Powered by ViewVC 1.1.20