|
|
@ -19,6 +19,7 @@ public class ScheduledServiceBean extends AbstractServiceBean {
|
|
|
|
task.run();
|
|
|
|
task.run();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
scheduled.setBusy(false);
|
|
|
|
scheduled.setBusy(false);
|
|
|
|
|
|
|
|
onComplete();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -35,6 +36,11 @@ public class ScheduledServiceBean extends AbstractServiceBean {
|
|
|
|
return task.get();
|
|
|
|
return task.get();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
scheduled.setBusy(false);
|
|
|
|
scheduled.setBusy(false);
|
|
|
|
|
|
|
|
onComplete();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**일정에 따른 작업 완료 후 해야할 작업을 실행한다.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
protected void onComplete() {}
|
|
|
|
}
|
|
|
|
}
|