/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java

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

revision 1025 by torben, Mon Aug 30 13:59:54 2010 UTC revision 1026 by torben, Thu Sep 2 18:37:49 2010 UTC
# Line 31  public class DepartureFetcher { Line 31  public class DepartureFetcher {
31          StationDAO stationDao = new StationDAO();          StationDAO stationDao = new StationDAO();
32                    
33          private boolean useTempSite;          private boolean useTempSite;
34            private int replyTimeout;
35                    
36          public DepartureFetcher(boolean tempSite, int cacheTimeout) {          public DepartureFetcher(boolean tempSite, int cacheTimeout, int replyTimeout) {
37                    this.replyTimeout = replyTimeout;
38                  useTempSite = tempSite;                  useTempSite = tempSite;
39                  cache = new TimeoutMap<String,DepartureBean>(cacheTimeout);                  cache = new TimeoutMap<String,DepartureBean>(cacheTimeout);
40          }          }
# Line 119  public class DepartureFetcher { Line 121  public class DepartureFetcher {
121                            
122                            
123              //logger.info("URI: " + uri);                        //logger.info("URI: " + uri);          
124              JsoupInvocation wrapper = new JsoupInvocation( new URL(uri), 2500);              JsoupInvocation wrapper = new JsoupInvocation( new URL(uri), replyTimeout);
125              CircuitBreaker breaker = CircuitBreakerManager.getManager().getCircuitBreaker("banedk");              CircuitBreaker breaker = CircuitBreakerManager.getManager().getCircuitBreaker("banedk");
126                            
127              Document page = (Document) breaker.invoke(wrapper);              Document page = (Document) breaker.invoke(wrapper);

Legend:
Removed from v.1025  
changed lines
  Added in v.1026

  ViewVC Help
Powered by ViewVC 1.1.20