APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class ThreadControllerWrapper

extends Object
Class Inheritance

A utility class that wraps the ThreadController, which is used by IncrementalSAXSource for the incremental building of DTM.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ThreadControllerWrapper.ThreadController

Thread controller utility class for incremental SAX source.

Field Summary

Modifier and TypeField and Description
private static ThreadControllerWrapper.ThreadController
m_tpool

The ThreadController pool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Thread
runThread(Runnable runnable, int priority)

public static void
waitThread(Thread worker, Runnable task)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_tpoolback to summary
private static ThreadControllerWrapper.ThreadController m_tpool

The ThreadController pool

Constructor Detail

ThreadControllerWrapperback to summary
public ThreadControllerWrapper()

Method Detail

runThreadback to summary
public static Thread runThread(Runnable runnable, int priority)
waitThreadback to summary
public static void waitThread(Thread worker, Runnable task) throws InterruptedException
com.sun.org.apache.xml.internal.utils back to summary

public Class ThreadControllerWrapper.ThreadController

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xml.internal.utils.ThreadControllerWrapper.ThreadController

Thread controller utility class for incremental SAX source. Must be overridden with a derived class to support thread pooling. All thread-related stuff is in this class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Thread

Returns:

The thread that is running the task, can be used to wait for completion
run
(Runnable
the Runnable
task
,
int
if >0 the task will run with the given priority ( doesn't seem to be used in xalan, since it's always the default )
priority
)

Will get a thread from the pool, execute the task and return the thread to the pool.

public void
waitThread(Thread
worker thread
worker
,
Runnable
the Runnable
task
)

Wait until the task is completed on the worker thread.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ThreadControllerback to summary
public ThreadController()

Method Detail

runback to summary
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

Parameters
task:Runnable

the Runnable

priority:int

if >0 the task will run with the given priority ( doesn't seem to be used in xalan, since it's always the default )

Returns:Thread

The thread that is running the task, can be used to wait for completion

waitThreadback to summary
public void waitThread(Thread worker, Runnable task) throws InterruptedException

Wait until the task is completed on the worker thread.

Parameters
worker:Thread

worker thread

task:Runnable

the Runnable