|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ThreadGroup
org.apache.avalon.excalibur.thread.impl.DefaultThreadPool
public class DefaultThreadPool
This class is the public frontend for the thread pool code.
Constructor Summary | |
---|---|
DefaultThreadPool(int capacity)
|
|
DefaultThreadPool(java.lang.String name,
int capacity)
|
|
DefaultThreadPool(java.lang.String name,
int min,
int max)
|
Method Summary | |
---|---|
void |
decommission(java.lang.Object object)
|
void |
dispose()
|
void |
enableLogging(Logger logger)
|
ThreadControl |
execute(Executable work)
Run work in separate thread. |
ThreadControl |
execute(Executable work)
Run work in separate thread. |
ThreadControl |
execute(java.lang.Runnable work)
Run work in separate thread. |
java.lang.Class |
getCreatedClass()
|
java.lang.Object |
newInstance()
|
Methods inherited from class java.lang.ThreadGroup |
---|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultThreadPool(int capacity) throws java.lang.Exception
java.lang.Exception
public DefaultThreadPool(java.lang.String name, int capacity) throws java.lang.Exception
java.lang.Exception
public DefaultThreadPool(java.lang.String name, int min, int max) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public void dispose()
dispose
in interface Disposable
public java.lang.Object newInstance()
newInstance
in interface ObjectFactory
public void decommission(java.lang.Object object)
decommission
in interface ObjectFactory
public java.lang.Class getCreatedClass()
getCreatedClass
in interface ObjectFactory
public ThreadControl execute(Executable work)
work
- the work to be executed.
public ThreadControl execute(java.lang.Runnable work)
execute
in interface ThreadPool
work
- the work to be executed.
public ThreadControl execute(Executable work)
execute
in interface ThreadPool
work
- the work to be executed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |