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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2352 - (show annotations) (download)
Mon Feb 23 15:49:00 2015 UTC (9 years, 2 months ago) by torben
File size: 610 byte(s)
Implement circuitbreakers around webservices
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, readonly=true)
17 public String googleApiUser;
18
19 @ConfigVariable(mandatory=false, hideValue=true)
20 public String googleApiKey;
21
22 @Override
23 public int getTimeout() {
24 return 60000;
25 }
26
27 @Override
28 public int getTreshold() {
29 return 5;
30 }
31
32 }

  ViewVC Help
Powered by ViewVC 1.1.20