org.olat.core.commons.persistence.async
Class BackgroundTaskQueueManager

java.lang.Object
  extended by 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

Method Summary
 void addTask(BackgroundTask task)
           
static BackgroundTaskQueueManager getInstance()
           
 java.util.Queue<BackgroundTask> getQueue()
           
 void setMaxRetry(int maxRetry)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BackgroundTaskQueueManager getInstance()

getQueue

public java.util.Queue<BackgroundTask> getQueue()

addTask

public void addTask(BackgroundTask task)

setMaxRetry

public void setMaxRetry(int maxRetry)