diff --git a/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java b/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java index c374df9..c94c622 100644 --- a/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java +++ b/src/main/java/cokr/xit/foundation/component/ScheduledServiceBean.java @@ -19,6 +19,7 @@ public class ScheduledServiceBean extends AbstractServiceBean { task.run(); } finally { scheduled.setBusy(false); + onComplete(); } } @@ -35,6 +36,11 @@ public class ScheduledServiceBean extends AbstractServiceBean { return task.get(); } finally { scheduled.setBusy(false); + onComplete(); } } + + /**일정에 따른 작업 완료 후 해야할 작업을 실행한다. + */ + protected void onComplete() {} } \ No newline at end of file