public interface BackgroundTaskHandler
BackgroundTasks| Modifier and Type | Method and Description |
|---|---|
boolean |
isScheduledOrRunning(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.Long entityId)
Returns whether the given background task type, with the given entity id as context, is either scheduled for
execution or currently runnnig
|
boolean |
isScheduledOrRunning(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.String context)
Returns whether the given background task type, with the given context, is either scheduled for execution or
currently runnnig
|
void |
schedule(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.Long entityId)
Schedules a
BackgroundTask execution with the given entity id as a context |
void |
schedule(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.String context)
Schedules a
BackgroundTask execution with the given context |
boolean isScheduledOrRunning(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.Long entityId)
boolean isScheduledOrRunning(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.String context)
void schedule(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.Long entityId)
BackgroundTask execution with the given entity id as a contextvoid schedule(java.lang.Class<? extends org.cyclos.impl.utils.tasks.BackgroundTask> type,
java.lang.String context)
BackgroundTask execution with the given context