Package io.micronaut.http.netty.channel
Class NettyThreadFactory
java.lang.Object
io.micronaut.http.netty.channel.NettyThreadFactory
The Default thread factory the Netty
NioEventLoopGroup
will use within Micronaut to
create threads.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Name for Netty thread factory. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get the default number of threads in the event loop.protected ThreadFactory
Constructs the default thread factory used by the HTTP client.
-
Field Details
-
NAME
Name for Netty thread factory.- See Also:
-
DEFAULT_EVENT_LOOP_THREADS
Deprecated, for removal: This API element is subject to removal in a future version.Non-functional, replaced bygetDefaultEventLoopThreads()
.Constant with the default threads in the event loop.- See Also:
-
-
Constructor Details
-
NettyThreadFactory
public NettyThreadFactory()
-
-
Method Details
-
getDefaultEventLoopThreads
public static int getDefaultEventLoopThreads()Get the default number of threads in the event loop.- Returns:
- The number of threads
-
nettyThreadFactory
Constructs the default thread factory used by the HTTP client.- Returns:
- The thread factory
-
getDefaultEventLoopThreads()
.