Package org.cyclos.impl.utils.tasks
Interface PollingTaskHandler
-
- All Known Subinterfaces:
PollingTaskHandlerImplementor
- All Known Implementing Classes:
AbstractPollingTaskHandlerImpl,NoClusterPollingTaskHandlerImpl
public interface PollingTaskHandlerHandles thePollingTasks 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 PollingTask> pollingTaskType)Schedules an awake for thePollingTaskof 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 PollingTask> pollingTaskType)
Schedules an awake for thePollingTaskof the given type after the current invocation ends
-
-