Package io.micronaut.http.netty.channel
Class NettyThreadFactory.EventLoopCustomizableThreadFactory
java.lang.Object
io.micronaut.http.netty.channel.NettyThreadFactory.EventLoopCustomizableThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- NettyThreadFactory
@Internal
public static final class NettyThreadFactory.EventLoopCustomizableThreadFactory
extends Object
implements ThreadFactory
We only create one ThreadFactory singleton, but in order to get different names for
different event loops, we need one
DefaultThreadFactory
for each event loop. When
the event loop factory sees this class, it uses it as a template to create an individual
ThreadFactory for each event loop group.-
Constructor Summary
ConstructorsConstructorDescriptionEventLoopCustomizableThreadFactory
(boolean daemon, int priority, boolean nonBlocking) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
EventLoopCustomizableThreadFactory
public EventLoopCustomizableThreadFactory(boolean daemon, int priority, boolean nonBlocking)
-
-
Method Details
-
customizeForEventLoop
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-