--- dao/DaoAdresseService/src/dk/daoas/daoadresseservice/admin/ServiceConfig.java 2015/02/23 14:39:49 2346 +++ dao/DaoAdresseService/src/dk/daoas/daoadresseservice/admin/ServiceConfig.java 2015/02/24 12:23:59 2367 @@ -1,10 +1,11 @@ package dk.daoas.daoadresseservice.admin; +import dk.thoerup.circuitbreaker.config.BreakerConfig; import dk.thoerup.webconfig.ConfigVariable; -public class ServiceConfig { +public class ServiceConfig implements BreakerConfig { @ConfigVariable public boolean useGoogle; @@ -12,4 +13,23 @@ @ConfigVariable public boolean useOpenStreetMaps; + @ConfigVariable + public int osmTimeout; + + @ConfigVariable(mandatory=false, readonly=true) + public String googleApiUser; + + @ConfigVariable(mandatory=false, hideValue=true) + public String googleApiKey; + + @Override + public int getTimeout() { + return 60000; + } + + @Override + public int getTreshold() { + return 5; + } + }