pool.setMaximumPoolSize(maxNumberThreads); if (maxTimeoutQueueSize > 0)
pool.setMaximumPoolSize(maxNumberThreads);
pool.setMaximumPoolSize(maxNumberThreads);
pool.setMaximumPoolSize(maxNumberThreads); if (maxOnewayThreadPoolQueueSize > 0) pool.setMaximumQueueSize(maxOnewayThreadPoolQueueSize);