|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.util.WorkThreadPool
@Deprecated public class WorkThreadPool
A pool of work threads.
ThreadUtilities
Constructor Summary | |
---|---|
WorkThreadPool(java.lang.String name,
int count)
Deprecated. Creates a new work thread pool with the specified number of work threads. |
Method Summary | |
---|---|
void |
addProgressListener(WorkThreadProgressListener listener)
Deprecated. Adds a progress listener to this thread pool. |
void |
addWorkRequest(java.lang.Runnable run,
boolean inAWT)
Deprecated. Adds a work request to the queue. |
int |
getRequestCount()
Deprecated. Returns the number of pending requests. |
WorkThread |
getThread(int index)
Deprecated. Returns the specified thread. |
int |
getThreadCount()
Deprecated. Returns the number of threads in this pool. |
void |
removeProgressListener(WorkThreadProgressListener listener)
Deprecated. Removes a progress listener from this thread pool. |
void |
start()
Deprecated. Starts all the threads in this thread pool. |
void |
waitForRequests()
Deprecated. Waits until all requests are complete. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkThreadPool(java.lang.String name, int count)
name
- The thread name prefixcount
- The number of work threadsMethod Detail |
---|
public void start()
public void addWorkRequest(java.lang.Runnable run, boolean inAWT)
run
- The runnableinAWT
- If true, will be executed in AWT thread. Otherwise,
will be executed in work thread. It is never executed directly.public void waitForRequests()
public int getRequestCount()
public int getThreadCount()
public WorkThread getThread(int index)
index
- The index of the thread
public void addProgressListener(WorkThreadProgressListener listener)
listener
- The listenerpublic void removeProgressListener(WorkThreadProgressListener listener)
listener
- The listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |