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