Class TaskSchedulerImpl
-
- All Implemented Interfaces:
-
tech.harmonysoft.oss.common.schedule.TaskScheduler
public final class TaskSchedulerImpl implements TaskScheduler
-
-
Constructor Summary
Constructors Constructor Description TaskSchedulerImpl(String schedulerId, ClockProvider clockProvider, ScheduledExecutorService threadPool)
-
Method Summary
Modifier and Type Method Description Unitschedule(Collection<ScheduledTask> tasks, TaskScheduler.Callback callback)Schedules given tasks for the give callback final Unitclear()-
-
Constructor Detail
-
TaskSchedulerImpl
TaskSchedulerImpl(String schedulerId, ClockProvider clockProvider, ScheduledExecutorService threadPool)
-
-
Method Detail
-
schedule
Unit schedule(Collection<ScheduledTask> tasks, TaskScheduler.Callback callback)
Schedules given tasks for the give callback
- Parameters:
tasks- new schedule to apply.callback- callback to call when it's time to execute the task
-
-
-
-