下面列出了怎么用io.netty.channel.MultithreadEventLoopGroup的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public MultithreadEventLoopGroup getServerIOEventLoopGroup() {
try {
if (Epoll.isAvailable() && getServer().k()) {
return ServerConnection.b.a();
} else {
return ServerConnection.a.a();
}
} catch (SecurityException | IllegalArgumentException e) {
throw new RuntimeException("Unable to get event loop", e);
}
}
@VisibleForTesting
MultithreadEventLoopGroup getInternalExecutor() {
return internalExecutor;
}
public MultithreadEventLoopGroup getServerIOEventLoopGroup();