title: Thread pool size of ThreadPoolExecutor passed into NioEventLoopGroup in Netty
body: <p>I want to use the <code>NioEventLoopGroup(int nThreads, Executor executor)</code> constructor in Netty to create an <code>EventLoopGroup</code> for Netty worker and use a <code>ScheduledExecutorService</code> to periodically check some conditions and change the thread pool size of a<code>ThreadPoolExecutor</code> instance (say <code>myPool</code>) passed the 2nd argument to the constructor.</p>
  
  <p>When I tested this, I tried to increase the thread pool size of <code>myPool</code> periodically and noticed the following. </p>
  
  <p><code>myPool.getPoolSize()</code> would always be less than or equal to the value of <code>nThread</code>.
  But the outputs of <code>myPool.getCorePoolSize()</code> and <code>myPool.getMaximumPoolSize()</code> show that the Core and Max pool size of <code>myPool</code> is indeed increasing periodically and it increases beyond the value of<code>nThread</code>.</p>
  
  <p>Does <code>nThread</code> limit the maximum number of current threads of <code>myPool</code>?</p>