@Singleton @Requires(property="micronaut.server.netty.use-native-transport",value="true",defaultValue="false") @Requires(classes=io.netty.channel.epoll.Epoll.class,condition=io.micronaut.http.server.netty.EpollAvailabilityCondition.class) @Internal public class EpollEventLoopGroupFactory extends Object implements EventLoopGroupFactory
| Constructor and Description |
|---|
EpollEventLoopGroupFactory() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(Integer ioRatio)
Creates a default EpollEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Executor executor,
Integer ioRatio)
Creates an EpollEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Integer ioRatio)
Creates an EpollEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
ThreadFactory threadFactory,
Integer ioRatio)
Creates an EpollEventLoopGroup.
|
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 EventLoopGroupFactorythreads - 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 EventLoopGroupFactorythreads - 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 EventLoopGroupFactorythreads - 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 EventLoopGroupFactoryioRatio - The io ratio.public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
serverSocketChannelClass in interface EventLoopGroupFactory