public class DownloadThreadPool extends Object
构造器和说明 |
---|
DownloadThreadPool() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(Runnable runnable)
执行任务
|
ExecutorWithListener |
getExecutor() |
void |
remove(Runnable runnable)
移除线程
|
void |
setCorePoolSize(int corePoolSize)
必须在首次执行前设置,否者无效 ,范围1-5之间
|
public ExecutorWithListener getExecutor()
public void setCorePoolSize(int corePoolSize)
public void execute(Runnable runnable)
public void remove(Runnable runnable)