private int getNextWorkerID() {
return nextWorkerID++;
}
public void doStart() throws WaitingException, Exception {
PooledExecutor p = new PooledExecutor(new LinkedQueue(), poolSize);
p.setKeepAliveTime(keepAliveTime);
p.setMinimumPoolSize(poolSize);
p.setThreadFactory(new ThreadFactory() {
public Thread newThread(Runnable arg0) {
return new Thread(arg0, poolName + " " + getNextWorkerID());
}
});