Class NioEventLoopGroupFactory

    • Constructor Detail

      • NioEventLoopGroupFactory

        public NioEventLoopGroupFactory()
    • Method Detail

      • createEventLoopGroup

        public io.netty.channel.EventLoopGroup createEventLoopGroup​(int threads,
                                                                    java.util.concurrent.ThreadFactory threadFactory,
                                                                    @Nullable
                                                                    java.lang.Integer ioRatio)
        Creates a NioEventLoopGroup.
        Specified by:
        createEventLoopGroup in interface EventLoopGroupFactory
        Parameters:
        threads - The number of threads to use.
        threadFactory - The thread factory.
        ioRatio - The io ratio.
        Returns:
        A NioEventLoopGroup.
      • createEventLoopGroup

        public io.netty.channel.EventLoopGroup createEventLoopGroup​(int threads,
                                                                    java.util.concurrent.Executor executor,
                                                                    @Nullable
                                                                    java.lang.Integer ioRatio)
        Creates a NioEventLoopGroup.
        Specified by:
        createEventLoopGroup in interface EventLoopGroupFactory
        Parameters:
        threads - The number of threads to use.
        executor - An Executor.
        ioRatio - The io ratio.
        Returns:
        A NioEventLoopGroup.
      • serverSocketChannelClass

        public java.lang.Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
        Returns the server channel class.
        Specified by:
        serverSocketChannelClass in interface EventLoopGroupFactory
        Returns:
        NioServerSocketChannel.
      • domainServerSocketChannelClass

        public java.lang.Class<? extends io.netty.channel.unix.ServerDomainSocketChannel> domainServerSocketChannelClass()
                                                                                                                  throws java.lang.UnsupportedOperationException
        Description copied from interface: EventLoopGroupFactory
        Returns the domain socket server channel class.
        Specified by:
        domainServerSocketChannelClass in interface EventLoopGroupFactory
        Returns:
        A ServerDomainSocketChannel class.
        Throws:
        java.lang.UnsupportedOperationException - if domain sockets are not supported.