org.apache.xalan.transformer
Class TransformerImpl.ThreadControler
java.lang.Object
|
+--org.apache.xalan.transformer.TransformerImpl.ThreadControler
- public static class TransformerImpl.ThreadControler
- extends java.lang.Object
Base thread controler for xalan. Must be overriden with
a derived class to support thread pooling.
All thread-related stuff is in this class.
Method Summary |
java.lang.Thread |
run(java.lang.Runnable task,
int priority)
Will get a thread from the pool, execute the task
and return the thread to the pool. |
void |
waitThread(java.lang.Thread worker,
java.lang.Runnable task)
Wait until the task is completed on the worker
thread. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TransformerImpl.ThreadControler
public TransformerImpl.ThreadControler()
run
public java.lang.Thread run(java.lang.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
- 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 )
waitThread
public void waitThread(java.lang.Thread worker,
java.lang.Runnable task)
throws java.lang.InterruptedException
- Wait until the task is completed on the worker
thread.
Copyright © 2000 Apache XML Project. All Rights Reserved.