org.apache.xml.utils
Class ThreadControllerWrapper.ThreadController
- ThreadControllerWrapper
public static class ThreadControllerWrapper.ThreadController
Thread controller utility class for incremental SAX source. Must
be overriden with a derived class to support thread pooling.
All thread-related stuff is in this class.
Thread | run(Runnable task, int priority) - Will get a thread from the pool, execute the task
and return the thread to the pool.
|
void | waitThread(Thread worker, Runnable task) - Wait until the task is completed on the worker
thread.
|
run
public Thread run(Runnable task,
int priority)
Will get a thread from the pool, execute the task
and return the thread to the pool.
The return value is used only to wait for completion
NEEDSDOC @param task
priority
- if >0 the task will run with the given priority
( doesn't seem to be used in xalan, since it's allways the default )
waitThread
public void waitThread(Thread worker,
Runnable task)
throws InterruptedException
Wait until the task is completed on the worker
thread.
NEEDSDOC @param worker
NEEDSDOC @param task
Copyright B) 2004 Apache XML Project. All Rights Reserved.