public void cancel() { if (dl != null) { dl.terminate(); } }
public boolean update(List list) { int count = 0; ListIterator i = list.listIterator(); while (i.hasNext()) { HttpDownload dl = (HttpDownload) i.next(); log.debug("ThreadPool: terminating queued download"); dl.terminate(); i.remove(); count++; } return (count > 0); } }