Class NettyThreadFactory

java.lang.Object
io.micronaut.http.netty.channel.NettyThreadFactory

@Singleton @Factory public class NettyThreadFactory extends Object
The Default thread factory the Netty NioEventLoopGroup will use within Micronaut to create threads.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Constructor Details

  • Method Details

    • getDefaultEventLoopThreads

      public static int getDefaultEventLoopThreads()
      Get the default number of threads in the event loop.
      Returns:
      The number of threads
    • nettyThreadFactory

      @Singleton @Named("netty") protected ThreadFactory nettyThreadFactory()
      Constructs the default thread factory used by the HTTP client.
      Returns:
      The thread factory