@Singleton @Internal @Requires(missingBeans={EpollEventLoopGroupFactory.class,KQueueEventLoopGroupFactory.class}) public class NioEventLoopGroupFactory extends Object implements EventLoopGroupFactory
Constructor and Description |
---|
NioEventLoopGroupFactory() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(Integer ioRatio)
Creates a default NioEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Executor executor,
Integer ioRatio)
Creates a NioEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Integer ioRatio)
Creates a NioEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
ThreadFactory threadFactory,
Integer ioRatio)
Creates a NioEventLoopGroup.
|
Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannelClass()
Returns the server channel class.
|
public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, @Nullable Integer ioRatio)
createEventLoopGroup
in interface EventLoopGroupFactory
threads
- The number of threads to use.ioRatio
- The io ratio.public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, ThreadFactory threadFactory, @Nullable Integer ioRatio)
createEventLoopGroup
in interface EventLoopGroupFactory
threads
- The number of threads to use.threadFactory
- The thread factory.ioRatio
- The io ratio.public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, Executor executor, @Nullable Integer ioRatio)
createEventLoopGroup
in interface EventLoopGroupFactory
threads
- The number of threads to use.executor
- An Executor.ioRatio
- The io ratio.public io.netty.channel.EventLoopGroup createEventLoopGroup(@Nullable Integer ioRatio)
createEventLoopGroup
in interface EventLoopGroupFactory
ioRatio
- The io ratio.public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
serverSocketChannelClass
in interface EventLoopGroupFactory