public class MultithreadingFactory
extends java.lang.Object
EnterpriseConfiguration.setMultithreadingFactory(MultithreadingFactory)
,
it is possible to customize Saxon's multithreading behavior.Constructor and Description |
---|
MultithreadingFactory(EnterpriseConfiguration config)
Create a MultithreadingFactory
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ExecutorService |
makeExecutorService(int threads)
Make an ExecutorService for a given number of threads
|
<F extends Item<?>,T extends Item<?>> |
makeMultithreadedItemMappingIterator(SequenceIterator<F> base,
ItemMappingFunction<F,T> action)
Get an item mapping iterator suitable for multi-threaded execution.
|
java.lang.Thread |
makeThread(java.lang.Runnable runnable)
Make a new Thread
|
XPathContextMajor.ThreadManager |
makeThreadManager()
Make a ThreadManager for asynchronous xsl:result-document instructions
|
public MultithreadingFactory(EnterpriseConfiguration config)
config
- the Saxon Configuration (must be a Saxon-EE configuration)public <F extends Item<?>,T extends Item<?>> SequenceIterator<T> makeMultithreadedItemMappingIterator(SequenceIterator<F> base, ItemMappingFunction<F,T> action) throws XPathException
base
- iterator over the input sequenceaction
- mapping function to be applied to each item in the input sequence.XPathException
public XPathContextMajor.ThreadManager makeThreadManager()
public java.util.concurrent.ExecutorService makeExecutorService(int threads)
threads
- the required number of threadspublic java.lang.Thread makeThread(java.lang.Runnable runnable)
runnable
- the Runnable to be executed by the threadCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.