|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a threading group collection. Used to accomodate switching from various types of collection classes. May simply wrap a java.util.ThreadGroup, or may simply use an array of threads.
Method Summary | |
void |
addThread(java.lang.Thread thread)
Add thread to the wrapped collection. |
void |
destroy()
Destroy can be called by the user code in order to prompt joining and cleanup of all working threads. |
boolean |
isEmpty()
Check whether work has one or more work items in collection. |
java.lang.Thread |
removeThread()
Remove one thread from the wrapped collection. |
int |
size()
Check how many items in work collection. |
java.lang.Thread |
useThread()
Similiar to removeThread but the thread reference is maintained in Group. |
Method Detail |
public void addThread(java.lang.Thread thread)
thread
- One working thread.public java.lang.Thread removeThread()
public java.lang.Thread useThread()
public int size()
public boolean isEmpty()
public void destroy()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |