Public 成员函数 | |
| AbTaskQueue () | |
| void | execute (AbTaskItem item) |
| void | execute (AbTaskItem item, boolean cancel) |
| void | run () |
| void | cancel (boolean mayInterruptIfRunning) |
静态 Public 成员函数 | |
| static AbTaskQueue | getInstance () |
Private 成员函数 | |
| synchronized void | addTaskItem (AbTaskItem item) |
Private 属性 | |
| boolean | mQuit = false |
静态 Private 属性 | |
| static LinkedList< AbTaskItem > | mAbTaskItemList = null |
| static AbTaskQueue | abTaskQueue = null |
| static HashMap< String, Object > | result |
| static Handler | handler |
© 2012 amsoft.cn 名称:AbTaskQueue.java 描述:线程队列.
|
inline |
构造执行线程队列.
|
inlineprivate |
描述:添加到执行线程队列.
| item | 执行单位 |
|
inline |
描述:终止队列释放线程.
| mayInterruptIfRunning | the may interrupt if running |
|
inline |
开始一个执行任务.
| item | 执行单位 |
|
inline |
开始一个执行任务并清除原来队列.
| item | 执行单位 |
| cancel | 清空之前的任务 |
|
inlinestatic |
单例构造.
|
inline |
描述:线程运行.
|
staticprivate |
单例对象.
|
staticprivate |
执行完成后的消息句柄.
|
staticprivate |
等待执行的任务. 用 LinkedList增删效率高
|
private |
停止的标记.
|
staticprivate |
存放返回的任务结果.
1.8.8