public static class ThreadControllerWrapper.ThreadController extends Object
Constructor and Description |
---|
ThreadController() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Thread run(Runnable task, int priority)
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 )public void waitThread(Thread worker, Runnable task) throws InterruptedException
InterruptedException
Copyright © 2017 JBoss by Red Hat. All rights reserved.