@Singleton @Internal @Requires(classes=io.netty.channel.kqueue.KQueue.class, condition=KQueueAvailabilityCondition.class) @Named(value="native") public class KQueueEventLoopGroupFactory extends java.lang.Object implements EventLoopGroupFactory
NATIVE| Constructor and Description |
|---|
KQueueEventLoopGroupFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends io.netty.channel.socket.SocketChannel> |
clientSocketChannelClass(EventLoopGroupConfiguration configuration)
Returns the client channel class.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(java.lang.Integer ioRatio)
Creates a default KQueueEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
java.util.concurrent.Executor executor,
java.lang.Integer ioRatio)
Creates a KQueueEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
java.lang.Integer ioRatio)
Creates a KQueueEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
java.util.concurrent.ThreadFactory threadFactory,
java.lang.Integer ioRatio)
Creates a KQueueEventLoopGroup.
|
boolean |
isNative() |
java.lang.Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannelClass()
Returns the server channel class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEventLoopGroup, serverSocketChannelClasspublic io.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
@Nullable
java.lang.Integer ioRatio)
createEventLoopGroup in interface EventLoopGroupFactorythreads - The number of threads to use.ioRatio - The io ratio.public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
java.util.concurrent.ThreadFactory threadFactory,
@Nullable
java.lang.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,
java.util.concurrent.Executor executor,
@Nullable
java.lang.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
java.lang.Integer ioRatio)
createEventLoopGroup in interface EventLoopGroupFactoryioRatio - The io ratio.public boolean isNative()
isNative in interface EventLoopGroupFactorypublic java.lang.Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
serverSocketChannelClass in interface EventLoopGroupFactory@NonNull
public java.lang.Class<? extends io.netty.channel.socket.SocketChannel> clientSocketChannelClass(@Nullable
EventLoopGroupConfiguration configuration)
EventLoopGroupFactoryclientSocketChannelClass in interface EventLoopGroupFactoryconfiguration - The configuration