|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.common.threads.DefaultThreadPoolFactory
Default ThreadPoolFactory
implementation that enables a ThreadListener
to be associated with each pool.
Constructor Summary | |
DefaultThreadPoolFactory(ThreadListener listener)
Construct a new DefaultThreadPoolFactory . |
Method Summary | |
EDU.oswego.cs.dl.util.concurrent.PooledExecutor |
create(java.lang.String name,
EDU.oswego.cs.dl.util.concurrent.Channel channel,
int maxPoolSize)
Construct a new ThreadPool . |
EDU.oswego.cs.dl.util.concurrent.PooledExecutor |
create(java.lang.String name,
int maxPoolSize)
Construct a new PooledExecutor . |
protected ThreadPool |
init(ThreadPool pool)
Initialises a pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultThreadPoolFactory(ThreadListener listener)
DefaultThreadPoolFactory
.listener
- the thread listener. May be null
Method Detail |
public EDU.oswego.cs.dl.util.concurrent.PooledExecutor create(java.lang.String name, int maxPoolSize)
PooledExecutor
.create
in interface ThreadPoolFactory
name
- the name to assign the thread group and worker
threadsmaxPoolSize
- the maximum no. of threads to usepublic EDU.oswego.cs.dl.util.concurrent.PooledExecutor create(java.lang.String name, EDU.oswego.cs.dl.util.concurrent.Channel channel, int maxPoolSize)
ThreadPool
.create
in interface ThreadPoolFactory
name
- the name to assign the thread group and worker
threadschannel
- the channel for queueingmaxPoolSize
- the maximum no. of threads to useprotected ThreadPool init(ThreadPool pool)
pool
- the pool to initialise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |