Package org.cyclos.impl.utils.tasks
Interface RecurringTaskHandler
-
- All Known Subinterfaces:
RecurringTaskHandlerImplementor
public interface RecurringTaskHandlerHandles theRecurringTasks lifecycle, as well as allows some control over them
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Long>getTaskDelays()Returns the remaining delays of the next execution for all tasks in seconds.
If the next execution was cancelled or the task was not scheduled (??) then it won't be included in the map.voidscheduleAwake(Class<? extends RecurringTask> recurringTaskType)Schedules an awake for theRecurringTaskof the given type after the current invocation ends
-
-
-
Method Detail
-
getTaskDelays
Map<String,Long> getTaskDelays()
Returns the remaining delays of the next execution for all tasks in seconds.
If the next execution was cancelled or the task was not scheduled (??) then it won't be included in the map.
-
scheduleAwake
void scheduleAwake(Class<? extends RecurringTask> recurringTaskType)
Schedules an awake for theRecurringTaskof the given type after the current invocation ends
-
-