public class TaskThreads extends NodeComponentImpl
| Constructor and Description |
|---|
TaskThreads(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyGroup(java.lang.ThreadGroup inThreadGroup) |
int |
getNumTasks() |
int |
getNumThreads() |
java.util.List<SuperThreadPool.SubmittedRunnable> |
getTasks() |
void |
joinPool()
Wait for the thread pool to shutdown
|
void |
joinPool(int inWaitSeconds)
Wait for the thread pool to shutdown
|
void |
setNumThreads(int inNum) |
void |
submitToPool(ScheduledTask<?> inTask)
Use this method when a task must run in a certain thread group.
|
getComponentKey, getComponentLink, hashCode, setComponentKey, startComponent, stopComponentpublic int getNumThreads()
public void setNumThreads(int inNum)
public int getNumTasks()
public java.util.List<SuperThreadPool.SubmittedRunnable> getTasks()
public void submitToPool(ScheduledTask<?> inTask) throws java.util.concurrent.RejectedExecutionException
inTask - java.util.concurrent.RejectedExecutionExceptionpublic void joinPool()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void joinPool(int inWaitSeconds)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void destroyGroup(java.lang.ThreadGroup inThreadGroup)