if (!AsyncExecutorManager.asyncExecutorExists("async1"))
AsyncExecutorManager.newAsyncExecutor("async1", 1, 10, Long.MAX_VALUE);
conn.setAsyncExecutorName("async1");
QueryFuture future = stmt.executeQueryAsync("select * from sch9",
new QueryListenerAdapter<HRecord>() {
public void onEachRow(final HRecord rec) throws HBqlException {
int val5 = (Integer)rec.getCurrentValue("val5");
int val6 = (Integer)rec.getCurrentValue("val6");
String val1 = (String)rec.getCurrentValue("val1");