aa2a9931e8
Motivation: In most cases, we want to use MultithreadEventLoopGroup such as NioEventLoopGroup without setting thread numbers but thread name only. So we need to use followed code: NioEventLoopGroup boss = new NioEventLoopGroup(0, new DefaultThreadFactory("boss")); It looks a bit confuse or strange for the number 0 due to we only want to set thread name. So it will be better to add new constructor for this case. Modifications: add new constructor into all event loop groups, for example: public NioEventLoopGroup(ThreadFactory threadFactory) Result: User can only set thread factory without setting the thread number to 0: NioEventLoopGroup boss = new NioEventLoopGroup(new DefaultThreadFactory("boss")); |
||
---|---|---|
.. | ||
src | ||
pom.xml |