--- dao/DaoAdresseService/src/dk/daoas/daoadresseservice/admin/ServiceConfig.java 2015/02/23 15:20:10 2351 +++ dao/DaoAdresseService/src/dk/daoas/daoadresseservice/admin/ServiceConfig.java 2015/02/23 15:49:00 2352 @@ -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; @@ -17,5 +18,15 @@ @ConfigVariable(mandatory=false, hideValue=true) public String googleApiKey; + + @Override + public int getTimeout() { + return 60000; + } + + @Override + public int getTreshold() { + return 5; + } }