Class SchedulerServiceImpl
java.lang.Object
org.apache.unomi.services.impl.scheduler.SchedulerServiceImpl
- All Implemented Interfaces:
SchedulerService
- Author:
- dgaillard
-
Constructor Summary
Constructors -
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.static long
getTimeDiffInSeconds
(int hourInUtc, ZonedDateTime now) void
void
void
setThreadPoolSize
(int threadPoolSize)
-
Constructor Details
-
SchedulerServiceImpl
public SchedulerServiceImpl()
-
-
Method Details
-
postConstruct
public void postConstruct() -
preDestroy
public void preDestroy() -
setThreadPoolSize
public void setThreadPoolSize(int threadPoolSize) -
getScheduleExecutorService
Description copied from interface:SchedulerService
Use this method to get aScheduledExecutorService
and execute your task with it instead of usingTimer
- Specified by:
getScheduleExecutorService
in interfaceSchedulerService
- Returns:
ScheduledExecutorService
-
getTimeDiffInSeconds
-