|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.excalibur.thread.impl.AbstractThreadPool | +--org.apache.excalibur.event.command.EventThreadPool
This class is the public frontend for the thread pool code.
Constructor Summary | |
EventThreadPool(int capacity)
|
|
EventThreadPool(String name,
int capacity)
|
|
EventThreadPool(String name,
int capacity,
int timeout)
|
Method Summary | |
void |
dispose()
|
void |
dispose(Object object)
Performs any deconstruction that is necessary for the object. |
Class |
getCreatedClass()
Get the class of the object you are creating. |
protected org.apache.excalibur.thread.impl.WorkerThread |
getWorker()
Retrieve a worker thread from pool. |
Object |
newInstance()
Create a new instance of the object being pooled. |
protected void |
releaseWorker(org.apache.excalibur.thread.impl.WorkerThread worker)
|
Methods inherited from class org.apache.excalibur.thread.impl.AbstractThreadPool |
createWorker, destroyWorker, execute, execute, getName, getThreadGroup, newWorkerThread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.excalibur.thread.ThreadPool |
execute, execute |
Constructor Detail |
public EventThreadPool(int capacity) throws Exception
public EventThreadPool(String name, int capacity) throws Exception
public EventThreadPool(String name, int capacity, int timeout) throws Exception
Method Detail |
public void dispose()
dispose
in interface Disposable
public Object newInstance()
ObjectFactory
newInstance
in interface ObjectFactory
public void dispose(Object object)
ObjectFactory
dispose
in interface ObjectFactory
object
- to destroypublic Class getCreatedClass()
ObjectFactory
getCreatedClass
in interface ObjectFactory
protected org.apache.excalibur.thread.impl.WorkerThread getWorker()
getWorker
in class org.apache.excalibur.thread.impl.AbstractThreadPool
protected void releaseWorker(org.apache.excalibur.thread.impl.WorkerThread worker)
releaseWorker
in class org.apache.excalibur.thread.impl.AbstractThreadPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |