| java.lang.Object org.apache.synapse.util.concurrent.SynapseThreadFactory
SynapseThreadFactory | public class SynapseThreadFactory implements ThreadFactory(Code) | | This is the thread factory for Synapse threads which are accessible through the
SynapseEnvironment as pooled threads.
|
group | final ThreadGroup group(Code) | | Holds the ThreadGroup under which this factory creates threads
|
namePrefix | final String namePrefix(Code) | | prefix for the thread id, thread number will be followed to construct the id
|
SynapseThreadFactory | public SynapseThreadFactory(ThreadGroup group, String namePrefix)(Code) | | Constructor for the ThreadFactory to create new threads
Parameters: group - - all the threads are created under this group by this factory Parameters: namePrefix - - name prefix of the threads created by this factory |
newThread | public Thread newThread(Runnable runnable)(Code) | | This method is the implementation of the the newThread method and will
create new threads under the group and with the nameprefix followed by the
thread number as the id
Parameters: runnable - - Runnable class to run by the created thread a Thread executing the given runnable |
|
|