|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IThreadPool
ThreadPool Interface.
| 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. |
| Method Detail |
|---|
boolean init(java.util.HashMap props)
props - init properties.void setThreadMold(IThreadWorker _threadWorker)
Thread 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.
_threadWorker - Set the Thread mold for this broker.boolean start()
void register()
unregister()void unregister()
register()void checkIn()
checkOut()void checkOut()
checkIn()boolean stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||