| 393 | |
| 394 | // Must call when epoll is available |
| 395 | private static Class<? extends Channel> epollChannelType() { |
| 396 | try { |
| 397 | Class<? extends Channel> channelType = Class |
| 398 | .forName("io.netty.channel.epoll.EpollSocketChannel").asSubclass(Channel.class); |
| 399 | return channelType; |
| 400 | } catch (ClassNotFoundException e) { |
| 401 | throw new RuntimeException("Cannot load EpollSocketChannel", e); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | // Must call when epoll is available |
| 406 | private static Class<? extends Channel> epollDomainSocketChannelType() { |