|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.netseeker.ejoe.concurrent.ThreadPool
Constructor Summary | |
ThreadPool()
|
|
ThreadPool(int numberOfThreads)
|
|
ThreadPool(int numberOfThreads,
int threadPriority)
|
|
ThreadPool(java.lang.ThreadGroup threadGroup)
|
|
ThreadPool(java.lang.ThreadGroup threadGroup,
int numberOfThreads)
|
Method Summary | |
int |
getRunnableCount()
Returns number of runnable object in the queue. |
void |
invokeLater(java.lang.Runnable task)
Dispatch a new task onto this pool to be invoked asynchronously later |
void |
run()
The method ran by the pool of background threads |
void |
setThreadGroup(java.lang.ThreadGroup threadGroup)
|
java.lang.Thread |
startThread()
Start a new thread running |
java.lang.Thread |
startThread(int priority)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadPool(int numberOfThreads, int threadPriority)
numberOfThreads
- threadPriority
- public ThreadPool(int numberOfThreads)
numberOfThreads
- public ThreadPool()
public ThreadPool(java.lang.ThreadGroup threadGroup)
threadGroup
- public ThreadPool(java.lang.ThreadGroup threadGroup, int numberOfThreads)
threadGroup
- numberOfThreads
- Method Detail |
public void setThreadGroup(java.lang.ThreadGroup threadGroup)
threadGroup
- public java.lang.Thread startThread()
public java.lang.Thread startThread(int priority)
priority
-
public void stop()
public int getRunnableCount()
public void invokeLater(java.lang.Runnable task)
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |