@@ -31,9 +31,9 @@ public class NettyHttpServer implements Runnable, Closeable {
3131 private final ThreadPoolExecutor executorGroup ;
3232 private final HttpResponseStatus responseStatus ;
3333
34- public NettyHttpServer (String host , int port , IMessageHandler messageHandler ,
35- SslHandlerProvider sslHandlerProvider , int threads ,
36- int maxPendingRequests , int maxContentLength , int responseCode )
34+ public NettyHttpServer (final String id , final String host , final int port , final IMessageHandler messageHandler ,
35+ final SslHandlerProvider sslHandlerProvider , final int threads ,
36+ final int maxPendingRequests , final int maxContentLength , final int responseCode )
3737 {
3838 this .host = host ;
3939 this .port = port ;
@@ -42,12 +42,12 @@ public NettyHttpServer(String host, int port, IMessageHandler messageHandler,
4242 // boss group is responsible for accepting incoming connections and sending to worker loop
4343 // process group is channel handler, see the https://github.com/netty/netty/discussions/13305
4444 // see the https://github.com/netty/netty/discussions/11808#discussioncomment-1610918 for why separation is good
45- bossGroup = new NioEventLoopGroup (1 , daemonThreadFactory ("http-input-connector " ));
46- processorGroup = new NioEventLoopGroup (threads , daemonThreadFactory ("http-input-processor " ));
45+ bossGroup = new NioEventLoopGroup (1 , daemonThreadFactory (id + "-bossGroup " ));
46+ processorGroup = new NioEventLoopGroup (threads , daemonThreadFactory (id + "-processorGroup " ));
4747
4848 // event handler group
4949 executorGroup = new ThreadPoolExecutor (threads , threads , 0 , TimeUnit .MILLISECONDS ,
50- new ArrayBlockingQueue <>(maxPendingRequests ), daemonThreadFactory ("http-input-handler-executor " ),
50+ new ArrayBlockingQueue <>(maxPendingRequests ), daemonThreadFactory (id + "-executorGroup " ),
5151 new CustomRejectedExecutionHandler ());
5252
5353 final HttpInitializer httpInitializer = new HttpInitializer (messageHandler , executorGroup ,
0 commit comments