Class IoThreadFactory
- java.lang.Object
-
- io.servicetalk.transport.netty.internal.IoThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public final class IoThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
DefaultThreadFactory
to create IOThread
s.
-
-
Constructor Summary
Constructors Constructor Description IoThreadFactory(java.lang.String threadNamePrefix)
Create a new instance.IoThreadFactory(java.lang.String threadNamePrefix, boolean daemon)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Thread
newThread(java.lang.Runnable r)
-
-
-
Constructor Detail
-
IoThreadFactory
public IoThreadFactory(java.lang.String threadNamePrefix)
Create a new instance.- Parameters:
threadNamePrefix
- the name prefix used for the createdThread
s.
-
IoThreadFactory
public IoThreadFactory(java.lang.String threadNamePrefix, boolean daemon)
Create a new instance.- Parameters:
threadNamePrefix
- the name prefix used for the createdThread
s.daemon
-true
if the createdThread
should be a daemon thread.
-
-