Use different executor for URL fetcher.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Mar 2009 23:10:09 +0000 (00:10 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Mar 2009 23:10:09 +0000 (00:10 +0100)
src/net/pterodactylus/arachne/core/Core.java

index 9bcddb0..53dedb8 100644 (file)
@@ -48,7 +48,7 @@ public class Core extends AbstractService {
        private ParserFactory parserFactory = new ParserFactory();
 
        /** Thread pool for the URL fetches. */
-       private Executor urlFetcherExecutor = Executors.newFixedThreadPool(1, new DumpingThreadFactory("URLFetcher-"));
+       private Executor urlFetcherExecutor = Executors.newSingleThreadExecutor(new DumpingThreadFactory("URLFetcher-"));
 
        /** The current list of URLs to crawl. */
        private final List<Page> pages = new ArrayList<Page>();