Package org.cyclos.impl.utils.tasks
Interface BackgroundTaskHandler
-
- All Known Subinterfaces:
BackgroundTaskHandlerImplementor
- All Known Implementing Classes:
BackgroundTaskHandlerImpl
public interface BackgroundTaskHandlerHandles the execution ofBackgroundTasks
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisScheduledOrRunning(Class<? extends BackgroundTask> type, Long entityId)Returns whether the given background task type, with the given entity id as context, is either scheduled for execution or currently runnnigbooleanisScheduledOrRunning(Class<? extends BackgroundTask> type, String context)Returns whether the given background task type, with the given context, is either scheduled for execution or currently runnnigvoidschedule(Class<? extends BackgroundTask> type, Long entityId)Schedules aBackgroundTaskexecution with the given entity id as a contextvoidschedule(Class<? extends BackgroundTask> type, String context)Schedules aBackgroundTaskexecution with the given context
-
-
-
Method Detail
-
isScheduledOrRunning
boolean isScheduledOrRunning(Class<? extends BackgroundTask> type, Long entityId)
Returns whether the given background task type, with the given entity id as context, is either scheduled for execution or currently runnnig
-
isScheduledOrRunning
boolean isScheduledOrRunning(Class<? extends BackgroundTask> type, String context)
Returns whether the given background task type, with the given context, is either scheduled for execution or currently runnnig
-
schedule
void schedule(Class<? extends BackgroundTask> type, Long entityId)
Schedules aBackgroundTaskexecution with the given entity id as a context
-
schedule
void schedule(Class<? extends BackgroundTask> type, String context)
Schedules aBackgroundTaskexecution with the given context
-
-