public interface ThreadPool
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_INCREASE_STEP |
static int |
DEFAULT_INIT_SIZE |
static int |
DEFAULT_MAX_SIZE |
static int |
DEFAULT_SLEEP_INTERVAL |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addTask(Runnable task)
添加加任务
|
int |
getMaxSize() |
PoolDoubleList<TaskThread> |
getTaskThreadPool() |
int |
size() |
void |
startThreadPool()
开启线程池
|
void |
stopThreadPool()
关闭线程池
|
static final int DEFAULT_SLEEP_INTERVAL
static final int DEFAULT_INCREASE_STEP
static final int DEFAULT_MAX_SIZE
static final int DEFAULT_INIT_SIZE
void stopThreadPool()
int getMaxSize()
int size()
void startThreadPool()
boolean addTask(Runnable task)
task - PoolDoubleList<TaskThread> getTaskThreadPool()
Copyright © 2006-2013 开源组织. All Rights Reserved.