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 CustomBackgroundTaskSchedulingcustom(String internalName, String context)Returns a newCustomBackgroundTaskSchedulingwhich is used to schedule a custom background taskbooleanisScheduledOrRunning(Class<? extends BackgroundTask> type, Object context)Returns whether the given background task type, with the given context, is either scheduled for execution or currently runningvoidschedule(BackgroundTaskScheduling task)Schedule aBackgroundTaskto run
-
-
-
Method Detail
-
custom
CustomBackgroundTaskScheduling custom(String internalName, String context)
Returns a newCustomBackgroundTaskSchedulingwhich is used to schedule a custom background task
-
isScheduledOrRunning
boolean isScheduledOrRunning(Class<? extends BackgroundTask> type, Object context)
Returns whether the given background task type, with the given context, is either scheduled for execution or currently running
-
schedule
void schedule(BackgroundTaskScheduling task)
Schedule aBackgroundTaskto run
-
-