|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antiaction.mayhem.core.ThreadPool
public class ThreadPool
Advanced ThreadPool manager.
| Constructor Summary | |
|---|---|
ThreadPool()
|
|
| Method Summary | |
|---|---|
void |
checkIn()
Notify thread pool that a thread has gone inactive. |
void |
checkOut()
Notify thread bool that a thread has gone active. |
boolean |
init(java.util.HashMap props)
Initialize object with specified properties. |
void |
register()
Notify thread pool that a new thread is running. |
void |
setThreadMold(IThreadWorker _threadWorker)
Sets the Thread mold for this ThreadPool, which is used either
directly or for cloning. |
boolean |
start()
Activate the broker. |
boolean |
stop()
Callback to let threads know they should shutdown. |
void |
unregister()
Notify thread pool that a thread has stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPool()
| Method Detail |
|---|
public boolean init(java.util.HashMap props)
IThreadPool
init in interface IThreadPoolprops - init properties.public void setThreadMold(IThreadWorker _threadWorker)
IThreadPoolThread mold for this ThreadPool, which is used either
directly or for cloning. The worker object must be initialized and the
clone implementation must re-init the clone to an identical state.
setThreadMold in interface IThreadPool_threadWorker - Set the Thread mold for this broker.public void register()
IThreadPool
register in interface IThreadPoolIThreadPool.unregister()public void unregister()
IThreadPool
unregister in interface IThreadPoolIThreadPool.register()public void checkIn()
IThreadPool
checkIn in interface IThreadPoolIThreadPool.checkOut()public void checkOut()
IThreadPool
checkOut in interface IThreadPoolIThreadPool.checkIn()public boolean stop()
IThreadPool
stop in interface IThreadPoolpublic boolean start()
IThreadPool
start in interface IThreadPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||