|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.netseeker.ejoe.concurrent.ThreadPoolFactory
public class ThreadPoolFactory
A factory producing ThreadPools. The factory will produce EJOEs default ThreadPool implementation for Java < 1.5.0 and a Executor-based implementation for Java >= 1.5.0.
| Constructor Summary | |
|---|---|
ThreadPoolFactory()
|
|
| Method Summary | |
|---|---|
static ThreadService |
createFixedThreadPool(int size)
Creates a new ThreadPool with a fixed size, the worker threads in the pool will belong to the ThreadGroup of the caller. |
static ThreadService |
createFixedThreadPool(int size,
java.lang.ThreadGroup group)
Creates a new ThreadPool with a fixed size, the worker threads in the pool will belong to the given ThreadGroup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolFactory()
| Method Detail |
|---|
public static ThreadService createFixedThreadPool(int size,
java.lang.ThreadGroup group)
size - limit of the poolgroup - ThreadGroup to which the workers will belong to.
public static ThreadService createFixedThreadPool(int size)
size - size limit of the pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||