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