netty5/transport-native-kqueue/src/main
stroller aa2a9931e8 Add one new constructor with threadFactory only (#9773)
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"));
2019-11-18 09:42:44 +01:00
..
c Cleanup JNI code to always correctly free memory when loading fails and also correctly respect out of memory in all cases (#9596) 2019-09-24 07:18:35 +02:00
java/io/netty/channel/kqueue Add one new constructor with threadFactory only (#9773) 2019-11-18 09:42:44 +01:00