public interface EventLoopGroupFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
NATIVE
Qualifier used to resolve the native factory.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends io.netty.channel.socket.SocketChannel> |
clientSocketChannelClass(EventLoopGroupConfiguration configuration)
Returns the client channel class.
|
default io.netty.channel.EventLoopGroup |
createEventLoopGroup(EventLoopGroupConfiguration configuration,
ThreadFactory threadFactory)
Create an event loop group for the given configuration and thread factory.
|
default io.netty.channel.EventLoopGroup |
createEventLoopGroup(Integer ioRatio)
Deprecated.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Executor executor,
Integer ioRatio)
Creates an EventLoopGroup.
|
default io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Integer ioRatio)
Deprecated.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
ThreadFactory threadFactory,
Integer ioRatio)
Creates an EventLoopGroup.
|
default boolean |
isNative() |
Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannelClass()
Returns the server channel class.
|
default Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannelClass(EventLoopGroupConfiguration configuration)
Returns the server channel class.
|
static final String NATIVE
default boolean isNative()
io.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
Executor executor,
@Nullable
Integer ioRatio)
threads - The number of threads to use.executor - An Executor.ioRatio - The io ratio.default io.netty.channel.EventLoopGroup createEventLoopGroup(EventLoopGroupConfiguration configuration, ThreadFactory threadFactory)
configuration - The configurationthreadFactory - The thread factoryio.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
@Nullable
ThreadFactory threadFactory,
@Nullable
Integer ioRatio)
threads - The number of threads to use.threadFactory - The thread factory.ioRatio - The io ratio.@Deprecated default io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, @Nullable Integer ioRatio)
createEventLoopGroup(EventLoopGroupConfiguration, ThreadFactory) insteadthreads - The number of threads to use.ioRatio - The io ratio.@Deprecated default io.netty.channel.EventLoopGroup createEventLoopGroup(@Nullable Integer ioRatio)
createEventLoopGroup(EventLoopGroupConfiguration, ThreadFactory) insteadioRatio - The io ratio.@NonNull Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
@NonNull default Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass(@Nullable EventLoopGroupConfiguration configuration)
configuration - The configuration@NonNull Class<? extends io.netty.channel.socket.SocketChannel> clientSocketChannelClass(@Nullable EventLoopGroupConfiguration configuration)
configuration - The configuration