public final class NativeChannelImplementationSelector extends Object implements NettyChannelImplementationSelector
NettyChannelImplementationSelector implementation that prefers native transport if possible.
Uses Epoll if possible (on Linux).| Modifier and Type | Method and Description |
|---|---|
Class<? extends io.netty.channel.Channel> |
getChannelClass() |
Class<? extends io.netty.channel.ServerChannel> |
getServerChannelClass() |
io.netty.channel.EventLoopGroup |
newEventLoopGroup(int numThreads,
ThreadFactory threadFactory)
Creates a new
EventLoopGroup. |
public io.netty.channel.EventLoopGroup newEventLoopGroup(int numThreads,
ThreadFactory threadFactory)
NettyChannelImplementationSelectorEventLoopGroup.newEventLoopGroup in interface NettyChannelImplementationSelectornumThreads - the number of threadsthreadFactory - the ThreadFactoryEventLoopGrouppublic Class<? extends io.netty.channel.ServerChannel> getServerChannelClass()
getServerChannelClass in interface NettyChannelImplementationSelectorpublic Class<? extends io.netty.channel.Channel> getChannelClass()
getChannelClass in interface NettyChannelImplementationSelectorCopyright © 2018. All rights reserved.