下载任务数支持修改
This commit is contained in:
1 parent
493810d0b0
commit
bd94e7dd27
8 files changed
+185
-4
No files matched your search
+1
-1
@@ -95,7 +95,7 @@ public class DownloadTaskQueue implements ITaskQueue {
|
||||
}
|
||||
|
||||
@Override public void setDownloadNum(int downloadNum) {
|
||||
|
||||
mExecutePool.setDownloadNum(downloadNum);
|
||||
}
|
||||
|
||||
@Override public Task createTask(DownloadEntity entity) {
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ public class ExecutePool implements IPool {
|
||||
*
|
||||
* @param downloadNum 下载数
|
||||
*/
|
||||
private void setDownloadNum(int downloadNum) {
|
||||
public void setDownloadNum(int downloadNum) {
|
||||
try {
|
||||
ArrayBlockingQueue<Task> temp = new ArrayBlockingQueue<>(downloadNum);
|
||||
Task task;
|
||||
|
||||
Reference in new issue
Block a user