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.socket.SocketChannel |
clientSocketChannelInstance(EventLoopGroupConfiguration configuration)
Returns the client channel class instance.
|
default io.netty.channel.EventLoopGroup |
createEventLoopGroup(EventLoopGroupConfiguration configuration,
ThreadFactory threadFactory)
Create an event loop group for the given configuration and thread factory.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Executor executor,
Integer ioRatio)
Creates an EventLoopGroup.
|
default io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Integer ioRatio)
Creates an EventLoopGroup.
|
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.
|
default io.netty.channel.socket.ServerSocketChannel |
serverSocketChannelInstance(EventLoopGroupConfiguration configuration)
Returns the server channel class instance.
|
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.default io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, @Nullable Integer ioRatio)
threads
- The number of threads to use.ioRatio
- 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 default io.netty.channel.socket.ServerSocketChannel serverSocketChannelInstance(@Nullable EventLoopGroupConfiguration configuration)
configuration
- The configuration@NonNull Class<? extends io.netty.channel.socket.SocketChannel> clientSocketChannelClass(@Nullable EventLoopGroupConfiguration configuration)
configuration
- The configuration@NonNull default io.netty.channel.socket.SocketChannel clientSocketChannelInstance(@Nullable EventLoopGroupConfiguration configuration)
configuration
- The configuration