摘要: //超过60s断开连接private final static int TIMEOUT = 1000 * 60;private Document getDocumentByUrl(String url) throws Exception { return Jsoup.connect(url) .he 阅读全文
posted @ 2017-02-28 10:36 samcheng 阅读(285) 评论(0) 推荐(0) 编辑
摘要: //线程的数量private static final int UPD_NO_THREADS = 5;//线程池的容量private ExecutorService executorService = Executors.newFixedThreadPool(UPD_NO_THREADS);publ 阅读全文
posted @ 2017-02-28 10:34 samcheng 阅读(178) 评论(0) 推荐(0) 编辑