import saccubus.worker.profile.DownloadProfile;
/**
- *
+ * GUIからのタスク(ダウンロード/変換)処理要求を管理するクラスです.
+ * タスク用Executor Serviceへの投入や、キャンセル要求の処理を行います.
* @author yuki
*/
public class TaskManage {
this(maxDownload, 30, maxConvert, null);
}
+ /**
+ * タスク管理オブジェクトを構築します.
+ * @param maxDownload 最大同時ダウンロード数.
+ * @param waitDownload 前回ダウンロードからの最小待ち時間(秒).
+ * @param maxConvert 最大同時変換数.
+ * @param listener イベントリスナ. 通知不要の場合はnull.
+ */
public TaskManage(int maxDownload, int waitDownload, int maxConvert, TaskManageListener listener) {
downloadExecutorService = Executors.newFixedThreadPool(maxDownload);
convertExecutorService = Executors.newFixedThreadPool(maxConvert);
return request;
}
}
-}
\ No newline at end of file
+}