private void showExternalDownloadItems() { final Map<String, FcpPersistentGet> items = persistentQueue.getDownloadRequests(); for (final FcpPersistentGet downloadRequest : items.values()) { if (!downloadModelItems.containsKey(downloadRequest.getIdentifier())) { addExternalItem(downloadRequest); } } }
public void startThreads() { directTransferThread.start(); persistentQueue.startThreads(); final TimerTask task = new TimerTask() { @Override public void run() { maybeStartRequests(); } }; Core.schedule(task, 3000, 3000); }
/** * @param ulItem items whose global identifier is to check * @return true if this item is currently in the global queue, no matter in what state */ public boolean isItemInGlobalQueue(final FrostUploadItem ulItem) { return persistentQueue.isIdInGlobalQueue(ulItem.getGqIdentifier()); }