Class DefaultTransportFactory

    • Constructor Detail

      • DefaultTransportFactory

        public DefaultTransportFactory()
    • Method Detail

      • socketChannelClass

        public Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass()
        Description copied from interface: TransportFactory
        Returns the Netty SocketChannel class to use in the transport.
        Specified by:
        socketChannelClass in interface TransportFactory
      • createEventLoopGroup

        public io.netty.channel.EventLoopGroup createEventLoopGroup​(int maxExecutors,
                                                                    ExecutorService executorService)
        Description copied from interface: TransportFactory
        Creates an event loop group
        Specified by:
        createEventLoopGroup in interface TransportFactory
        Parameters:
        maxExecutors - the maximum number of executors
        executorService - the executor service to use
        Returns:
        an instance of Netty's EventLoopGroup