|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.ThreadManager
public class ThreadManager
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
This is a class that provides thread handling services to internal clients
as well as exposes some of the status of these threads to the public API.
| Constructor Summary | |
|---|---|
ThreadManager()
|
|
| Method Summary | |
|---|---|
int |
activeCount()
|
void |
interruptAll()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Attempts to stop running threads. |
boolean |
joinAll(long maxWaitMillis)
Wait for any executing background threads to complete. |
int |
startThread(Runnable job,
String label)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Starts a new job on a background thread. |
void |
stopThread(int threadID)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Stops a thread that was started in this thread manager. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadManager()
| Method Detail |
|---|
public int activeCount()
public int startThread(Runnable job,
String label)
job - The job to startlabel - a job description
stopThread(int)public void stopThread(int threadID)
threadID - the ID of the thread to stoppublic boolean joinAll(long maxWaitMillis)
maxWaitMillis - The maximum time that should be waited, in milliseconds.
This is not an exact time but will be fairly close.
public void interruptAll()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||