Package org.apache.unomi.api.services
Interface SchedulerService
- All Known Implementing Classes:
SchedulerServiceImpl
public interface SchedulerService
A service to centralize scheduling of tasks instead of using Timers or executors in each service
https://stackoverflow.com/questions/409932/java-timer-vs-executorservice
-
Method Summary
Modifier and TypeMethodDescriptionUse this method to get aScheduledExecutorService
and execute your task with it instead of usingTimer
Same as getScheduleExecutorService but use a shared pool of ScheduledExecutor instead of single one.
-
Method Details
-
getScheduleExecutorService
ScheduledExecutorService getScheduleExecutorService()Use this method to get aScheduledExecutorService
and execute your task with it instead of usingTimer
- Returns:
ScheduledExecutorService
-