我正在使用此课程执行一些后台任务
setParent()
此任务依次调用DownloadHelper来执行某项任务。
class Download extends Task{
protected Object call() throws Exception {
try {
updateMessage("Establishing Connection");
DownloadHelper downloadHelper = new DownloadHelper();
downloadHelper.performTask();
return null;
} catch (IOException | ParseException ex) {
logger.error(ExceptionUtils.getStackTrace(ex));
throw ex;
}
}
}
有没有办法从DownloadHelper类更新Task API(updateMessage())的状态消息。?