CREATE ASYNC EXECUTOR name ['(' executorArg [, ...] ')'] [IF bool_expr]
executorArg:
MIN_THREAD_COUNT ':' int_expr
| MAX_THREAD_COUNT ':' int_expr
| KEEP_ALIVE_SECS ':' long_expr
Creates a named AsyncExecutor.
HConnection conn = HConnectionManager.newConnection();
// Create AsyncExecutor named asyncExec if it doesn't already exist.
conn.execute("CREATE ASYNC EXECUTOR asyncExec (MAX_THREAD_COUNT: 10) IF NOT asyncExecutorExists('asyncExec')");
// Or, using the API
if (!AsyncExecutorManager.asyncExecutorExists("asyncExec"))
AsyncExecutorManager.newAsyncExecutor("asyncExec", 5, 10, Long.MAX_VALUE);
// Then assign the connection an AsyncExecutor name to use for queries
conn.setAsyncExecutorName("asyncExec");
// Now use connection in a query.