public void onComplete(AsyncEvent event) throws IOException{
// do 一些清理工作或者其他
}
public void onTimeout(AsyncEvent event) throws IOException{
// do 一些超时处理的工作或者其他
}
});
ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(10);
executor.execute(new MyAsyncService(actx));
}