|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectnet.sourceforge.wopa.FixedThreadPool
public class FixedThreadPool
包装了JDK自带的连接池
字段摘要 | |
---|---|
private java.util.concurrent.ExecutorService |
executor
|
private boolean |
stopped
|
构造函数摘要 | |
---|---|
FixedThreadPool(int thread_count)
创建一个给定数目的线程池 |
方法摘要 | |
---|---|
void |
execute(Saver saver)
在线程池中增加一个保存器 |
boolean |
isShutdown()
线程池是否已经终止运行 |
void |
shutdown()
终止运行当前线程池中的所有线程 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
private java.util.concurrent.ExecutorService executor
private boolean stopped
构造函数详细信息 |
---|
public FixedThreadPool(int thread_count)
thread_count
- 方法详细信息 |
---|
public void execute(Saver saver)
saver
- public boolean isShutdown()
public void shutdown()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |