let the module decide what tasks are registered

This commit is contained in:
Athou
2014-11-24 12:46:43 +01:00
parent 6419d29489
commit 9ac4187aa8
3 changed files with 24 additions and 10 deletions

View File

@@ -26,7 +26,8 @@ public abstract class ScheduledTask {
}
}
};
log.info("registering task {} for execution every {} {}, starting in {} {}", getClass().getSimpleName(), getPeriod(),
getTimeUnit(), getInitialDelay(), getTimeUnit());
executor.scheduleWithFixedDelay(runnable, getInitialDelay(), getPeriod(), getTimeUnit());
}
}