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.ThreadFactoryDefaultThreadFactoryto create IOThreads.
-
-
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.ThreadnewThread(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 createdThreads.
-
IoThreadFactory
public IoThreadFactory(java.lang.String threadNamePrefix, boolean daemon)Create a new instance.- Parameters:
threadNamePrefix- the name prefix used for the createdThreads.daemon-trueif the createdThreadshould be a daemon thread.
-
-