@Primary @Singleton public class DefaultEventLoopGroupFactory extends Object implements EventLoopGroupFactory
EventLoopGroup instances.NATIVE| Constructor and Description | 
|---|
| DefaultEventLoopGroupFactory(NioEventLoopGroupFactory nioEventLoopGroupFactory,
                            EventLoopGroupFactory nativeFactory)Default constructor. | 
| DefaultEventLoopGroupFactory(NioEventLoopGroupFactory nioEventLoopGroupFactory,
                            EventLoopGroupFactory nativeFactory,
                            NettyGlobalConfiguration nettyGlobalConfiguration)Default constructor. | 
| 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(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. | 
| io.netty.channel.EventLoopGroup | createEventLoopGroup(int threads,
                    ThreadFactory threadFactory,
                    Integer ioRatio)Creates an EventLoopGroup. | 
| Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> | domainServerSocketChannelClass()Returns the domain socket server channel class. | 
| Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> | domainServerSocketChannelClass(EventLoopGroupConfiguration configuration)Returns the domain socket server channel class. | 
| io.netty.channel.ServerChannel | domainServerSocketChannelInstance(EventLoopGroupConfiguration configuration)Returns the domain socket server channel class. | 
| Class<? extends io.netty.channel.socket.ServerSocketChannel> | serverSocketChannelClass()Returns the server channel class. | 
| Class<? extends io.netty.channel.socket.ServerSocketChannel> | serverSocketChannelClass(EventLoopGroupConfiguration configuration)Returns the server channel class. | 
| io.netty.channel.socket.ServerSocketChannel | serverSocketChannelInstance(EventLoopGroupConfiguration configuration)Returns the server channel class instance. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEventLoopGroup, isNativepublic DefaultEventLoopGroupFactory(NioEventLoopGroupFactory nioEventLoopGroupFactory, @Nullable @Named(value="native") EventLoopGroupFactory nativeFactory)
nioEventLoopGroupFactory - The NIO factorynativeFactory - The native factory if available@Inject public DefaultEventLoopGroupFactory(NioEventLoopGroupFactory nioEventLoopGroupFactory, @Nullable @Named(value="native") EventLoopGroupFactory nativeFactory, @Nullable NettyGlobalConfiguration nettyGlobalConfiguration)
nioEventLoopGroupFactory - The NIO factorynativeFactory - The native factory if availablenettyGlobalConfiguration - The netty global configurationpublic io.netty.channel.EventLoopGroup createEventLoopGroup(EventLoopGroupConfiguration configuration, ThreadFactory threadFactory)
EventLoopGroupFactorycreateEventLoopGroup in interface EventLoopGroupFactoryconfiguration - The configurationthreadFactory - The thread factorypublic io.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
                                                            Executor executor,
                                                            @Nullable
                                                            Integer ioRatio)
EventLoopGroupFactorycreateEventLoopGroup in interface EventLoopGroupFactorythreads - The number of threads to use.executor - An Executor.ioRatio - The io ratio.public io.netty.channel.EventLoopGroup createEventLoopGroup(int threads,
                                                            @Nullable
                                                            ThreadFactory threadFactory,
                                                            @Nullable
                                                            Integer ioRatio)
EventLoopGroupFactorycreateEventLoopGroup in interface EventLoopGroupFactorythreads - The number of threads to use.threadFactory - The thread factory.ioRatio - The io ratio.public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
EventLoopGroupFactoryserverSocketChannelClass in interface EventLoopGroupFactorypublic Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> domainServerSocketChannelClass() throws UnsupportedOperationException
EventLoopGroupFactorydomainServerSocketChannelClass in interface EventLoopGroupFactoryUnsupportedOperationException - if domain sockets are not supported.@NonNull public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass(EventLoopGroupConfiguration configuration)
EventLoopGroupFactoryserverSocketChannelClass in interface EventLoopGroupFactoryconfiguration - The configuration@NonNull public Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> domainServerSocketChannelClass(EventLoopGroupConfiguration configuration)
EventLoopGroupFactorydomainServerSocketChannelClass in interface EventLoopGroupFactoryconfiguration - The configurationpublic io.netty.channel.socket.ServerSocketChannel serverSocketChannelInstance(EventLoopGroupConfiguration configuration)
EventLoopGroupFactoryserverSocketChannelInstance in interface EventLoopGroupFactoryconfiguration - The configurationpublic io.netty.channel.ServerChannel domainServerSocketChannelInstance(@Nullable EventLoopGroupConfiguration configuration)
EventLoopGroupFactorydomainServerSocketChannelInstance in interface EventLoopGroupFactoryconfiguration - The configuration@NonNull public Class<? extends io.netty.channel.socket.SocketChannel> clientSocketChannelClass(@Nullable EventLoopGroupConfiguration configuration)
EventLoopGroupFactoryclientSocketChannelClass in interface EventLoopGroupFactoryconfiguration - The configuration@NonNull public io.netty.channel.socket.SocketChannel clientSocketChannelInstance(@Nullable EventLoopGroupConfiguration configuration)
EventLoopGroupFactoryclientSocketChannelInstance in interface EventLoopGroupFactoryconfiguration - The configuration