private int pollCompletedDownloads() { int tasks = 0; for (int i = 0; i < completedRequests.size(); i++) { parserService.submit(new FeedParserTask(completedRequests.poll())); tasks++; } return tasks; }
/** * Returns the number of items in the download queue. Does NOT include the currently downloading * item, if any. * * <p> * * @return The number of items in the download queue. */ public Integer getNumberOfQueuedItems() { Log.getInstance().write(Log.LOGLEVEL_TRACE, "DT: getNumberOfItems."); return RecordingMaps.size(); }
public int queueSize() { return changes.size(); }
public final int size() { return queue.size(); }