Class NioClientSocketChannelFactory

    • Constructor Detail

      • NioClientSocketChannelFactory

        public NioClientSocketChannelFactory​(Executor bossExecutor,
                                             Executor workerExecutor,
                                             int workerCount)
        Creates a new instance. Calling this constructor is same with calling NioClientSocketChannelFactory(Executor, Executor, int, int) with 1 as bossCount.
        Parameters:
        bossExecutor - the Executor which will execute the boss thread
        workerExecutor - the Executor which will execute the worker threads
        workerCount - the maximum number of I/O worker threads
      • NioClientSocketChannelFactory

        public NioClientSocketChannelFactory​(Executor bossExecutor,
                                             Executor workerExecutor,
                                             int bossCount,
                                             int workerCount)
        Creates a new instance.
        Parameters:
        bossExecutor - the Executor which will execute the boss thread
        workerExecutor - the Executor which will execute the worker threads
        bossCount - the maximum number of boss threads
        workerCount - the maximum number of I/O worker threads
      • NioClientSocketChannelFactory

        public NioClientSocketChannelFactory​(Executor bossExecutor,
                                             int bossCount,
                                             WorkerPool<NioWorker> workerPool)
        Creates a new instance.
        Parameters:
        bossExecutor - the Executor which will execute the boss thread
        bossCount - the maximum number of boss threads
        workerPool - the WorkerPool to use to do the IO
      • NioClientSocketChannelFactory

        public NioClientSocketChannelFactory​(Executor bossExecutor,
                                             int bossCount,
                                             WorkerPool<NioWorker> workerPool,
                                             Timer timer)
        Creates a new instance.
        Parameters:
        bossExecutor - the Executor which will execute the boss thread
        bossCount - the maximum number of boss threads
        workerPool - the WorkerPool to use to do the IO
        timer - the Timer to use to handle the connection timeouts