|
|||||
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. |
boolean |
joinAll(long maxWaitMillis)
Wait for any executing background threads to complete. |
int |
startThread(java.lang.Runnable job,
java.lang.String label)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
void |
stopThread(int threadID)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadManager()
Method Detail |
---|
public int activeCount()
public void interruptAll()
public 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 int startThread(java.lang.Runnable job, java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |