@Singleton @Internal @Requires(classes=io.netty.channel.kqueue.KQueue.class, condition=KQueueAvailabilityCondition.class) @Named(value="native") public class KQueueEventLoopGroupFactory extends Object implements EventLoopGroupFactory
NATIVE
Constructor and Description |
---|
KQueueEventLoopGroupFactory() |
Modifier and Type | Method and Description |
---|---|
Class<? extends io.netty.channel.socket.SocketChannel> |
clientSocketChannelClass(EventLoopGroupConfiguration configuration)
Returns the client channel class.
|
io.netty.channel.socket.SocketChannel |
clientSocketChannelInstance(EventLoopGroupConfiguration configuration)
Returns the client channel class instance.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
Executor executor,
Integer ioRatio)
Creates a KQueueEventLoopGroup.
|
io.netty.channel.EventLoopGroup |
createEventLoopGroup(int threads,
ThreadFactory threadFactory,
Integer ioRatio)
Creates a KQueueEventLoopGroup.
|
Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> |
domainServerSocketChannelClass()
Returns the domain socket server channel class.
|
io.netty.channel.ServerChannel |
domainServerSocketChannelInstance(EventLoopGroupConfiguration configuration)
Returns the domain socket server channel class.
|
boolean |
isNative() |
Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannelClass()
Returns the server channel class.
|
io.netty.channel.kqueue.KQueueServerSocketChannel |
serverSocketChannelInstance(EventLoopGroupConfiguration configuration)
Returns the server channel class instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEventLoopGroup, createEventLoopGroup, domainServerSocketChannelClass, serverSocketChannelClass
public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads, ThreadFactory threadFactory, @Nullable Integer ioRatio)
createEventLoopGroup
in interface EventLoopGroupFactory
threads
- 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 EventLoopGroupFactory
threads
- The number of threads to use.executor
- An Executor.ioRatio
- The io ratio.public boolean isNative()
isNative
in interface EventLoopGroupFactory
public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
serverSocketChannelClass
in interface EventLoopGroupFactory
public Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> domainServerSocketChannelClass() throws UnsupportedOperationException
EventLoopGroupFactory
domainServerSocketChannelClass
in interface EventLoopGroupFactory
UnsupportedOperationException
- if domain sockets are not supported.public io.netty.channel.kqueue.KQueueServerSocketChannel serverSocketChannelInstance(EventLoopGroupConfiguration configuration)
EventLoopGroupFactory
serverSocketChannelInstance
in interface EventLoopGroupFactory
configuration
- The configurationpublic io.netty.channel.ServerChannel domainServerSocketChannelInstance(@Nullable EventLoopGroupConfiguration configuration)
EventLoopGroupFactory
domainServerSocketChannelInstance
in interface EventLoopGroupFactory
configuration
- The configuration@NonNull public Class<? extends io.netty.channel.socket.SocketChannel> clientSocketChannelClass(@Nullable EventLoopGroupConfiguration configuration)
EventLoopGroupFactory
clientSocketChannelClass
in interface EventLoopGroupFactory
configuration
- The configurationpublic io.netty.channel.socket.SocketChannel clientSocketChannelInstance(EventLoopGroupConfiguration configuration)
EventLoopGroupFactory
clientSocketChannelInstance
in interface EventLoopGroupFactory
configuration
- The configuration