From cc03466f753afb6a1feb2f203966ba0672ddae95 Mon Sep 17 00:00:00 2001 From: clemenso Date: Thu, 25 Sep 2008 13:59:42 +0000 Subject: webservice timeout git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@71 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java | 8 +++++++- .../main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'BKUOnline/src') diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java index 8e61230c..bb552002 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/RequestBrokerSTALFactory.java @@ -32,12 +32,18 @@ import at.gv.egiz.stal.STALFactory; */ public class RequestBrokerSTALFactory implements STALFactory { + private long timeout; + @Override public STAL createSTAL() { - return new STALRequestBrokerImpl(); + return new STALRequestBrokerImpl(timeout); } @Override public void setLocale(Locale locale) { } + + public void setTimeout(long millisec) { + timeout = millisec; + } } diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java index 6aabdae4..560282ac 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALRequestBroker.java @@ -33,7 +33,7 @@ import java.util.List; public interface STALRequestBroker extends STAL { public static final int ERR_6000 = 6000; - public static final long TIMEOUT_MS = 1000*60*3; //3mn + public static final long DEFAULT_TIMEOUT_MS = 1000*60*5; //5mn public List nextRequest(List response); -- cgit v1.2.3