org.olat.core.commons.persistence.async
Class BackgroundTaskQueueManager
java.lang.Object
org.olat.core.commons.persistence.async.BackgroundTaskQueueManager
public class BackgroundTaskQueueManager
- extends java.lang.Object
FIFO-queue for background job. Application can put-in 'background-task', the background-job check in a fix interval
this queue and can execute task.
- Author:
- Christian Guretzki
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static BackgroundTaskQueueManager getInstance()
getQueue
public java.util.Queue<BackgroundTask> getQueue()
addTask
public void addTask(BackgroundTask task)
setMaxRetry
public void setMaxRetry(int maxRetry)