OSDN Git Service

コメント追加
authoryukihane <yukihane.feather@gmail.com>
Wed, 14 Sep 2011 03:22:31 +0000 (12:22 +0900)
committeryukihane <yukihane.feather@gmail.com>
Wed, 14 Sep 2011 03:22:31 +0000 (12:22 +0900)
frontend/src/yukihane/inqubus/manager/TaskManage.java

index 190df35..4aeb873 100644 (file)
@@ -22,7 +22,8 @@ import saccubus.worker.profile.ConvertProfile;
 import saccubus.worker.profile.DownloadProfile;
 
 /**
- *
+ * GUIからのタスク(ダウンロード/変換)処理要求を管理するクラスです.
+ * タスク用Executor Serviceへの投入や、キャンセル要求の処理を行います.
  * @author yuki
  */
 public class TaskManage {
@@ -43,6 +44,13 @@ 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);
@@ -236,4 +244,4 @@ public class TaskManage {
             return request;
         }
     }
-}
\ No newline at end of file
+}