Package org.apache.xml.utils
Class ThreadControllerWrapper.ThreadController
java.lang.Object
org.apache.xml.utils.ThreadControllerWrapper.ThreadController
- Enclosing class:
ThreadControllerWrapper
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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadController
public ThreadController()
-
-
Method Details
-
run
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- Parameters:
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 )- Returns:
- The thread that is running the task, can be used to wait for completion
-
waitThread
Wait until the task is completed on the worker thread. NEEDSDOC @param worker NEEDSDOC @param task- Throws:
InterruptedException
-