public class SynapseThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
SynapseThreadFactory(ThreadGroup group,
String namePrefix)
Constructor for the ThreadFactory to create new threads
|
Modifier and Type | Method and Description |
---|---|
Thread |
newThread(Runnable runnable)
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
|
public SynapseThreadFactory(ThreadGroup group, String namePrefix)
group
- - all the threads are created under this group by this factorynamePrefix
- - name prefix of the threads created by this factorypublic Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
runnable
- - Runnable class to run by the created threadCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.