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>();