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

java.lang.Object
  extended by org.olat.core.commons.persistence.async.AbstractBackgroundTask
All Implemented Interfaces:
BackgroundTask
Direct Known Subclasses:
IncrementDownloadCounterBackgroundTask, IncrementLaunchCounterBackgroundTask, SetAccessBackgroundTask, SetDescriptionNameBackgroundTask, SetLastUsageBackgroundTask, SetPropertiesBackgroundTask

public abstract class AbstractBackgroundTask
extends java.lang.Object
implements BackgroundTask

Author:
Christian Guretzki

Constructor Summary
AbstractBackgroundTask()
           
 
Method Summary
 void execute()
           
abstract  void executeTask()
           
 boolean isTaskDone()
           
 void setMaxRetry(int maxRetry)
           
 void waitForDone()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBackgroundTask

public AbstractBackgroundTask()
Method Detail

execute

public void execute()
Specified by:
execute in interface BackgroundTask

setMaxRetry

public void setMaxRetry(int maxRetry)
Specified by:
setMaxRetry in interface BackgroundTask

executeTask

public abstract void executeTask()

isTaskDone

public boolean isTaskDone()

waitForDone

public void waitForDone()