use of com.blade.kit.NamedThreadFactory in project blade by biezhi.
the class EpollKit method group.
static NettyServerGroup group(int threadCount, int workers) {
var bossGroup = new EpollEventLoopGroup(threadCount, new NamedThreadFactory("epoll-boss@"));
var workerGroup = new EpollEventLoopGroup(workers, new NamedThreadFactory("epoll-worker@"));
return NettyServerGroup.builder().boosGroup(bossGroup).workerGroup(workerGroup).socketChannel(EpollServerSocketChannel.class).build();
}
Aggregations