final int completionQueueSize) throws HBqlException {
if (Utils.isValidString(poolName) && getExecutorPoolMap().containsKey(poolName))
throw new HBqlException("QueryExecutorPool already exists: " + poolName);
final QueryExecutorPoolImpl executorPool = new QueryExecutorPoolImpl(poolName,
maxExecutorPoolSize,
minThreadCount,
maxThreadCount,
keepAliveSecs,
threadsReadResults,
completionQueueSize);
QueryExecutorPoolManager.getExecutorPoolMap().put(executorPool.getName(), executorPool);
return executorPool;
}