|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.crispy.concurrent.ThreadController
This class create and controlled all Threads.
Constructor Summary | |
ThreadController()
|
Method Summary | |
int |
getCurrentRequests()
Returns the number of currently running Threads. |
int |
getMaxThreads()
|
ThreadWorker |
getThreadWorker()
Get a new ThreadWorker (Thread) or from pool. |
void |
releasThreadWorker(ThreadWorker pvThreadWorker)
Release ThreadWorker (Thread) |
void |
setMaxThreads(int pvMaxThreads)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadController()
Method Detail |
public void setMaxThreads(int pvMaxThreads)
public int getMaxThreads()
public ThreadWorker getThreadWorker()
ThreadWorker (Thread)
or from pool.
public void releasThreadWorker(ThreadWorker pvThreadWorker)
ThreadWorker (Thread)
pvThreadWorker
- the Threadpublic int getCurrentRequests()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |