Package org.cyclos.impl.utils.tasks
Interface BackgroundTask
-
- All Superinterfaces:
HasMessageKey
- All Known Implementing Classes:
AbstractBackgroundTask,AdInterestNotificationBackgroundTask,ArchiveAccountFeeLogBackgroundTask,ArchiveBulkActionBackgroundTask,BulkActionProcessingBackgroundTask,ChargeAccountFeeBatchBackgroundTask,DispatchAccountFeeChargesBackgroundTask,EntityNotificationProcessingBackgroundTask,ExternalPaymentBackgroundTask,FileScriptBackgroundTask,ImportBackgroundTask,IndexEntitiesBackgroundTask,InlineScriptBackgroundTask,MailProcessingBackgroundTask,MessageProcessingBackgroundTask,NotificationSendingBackgroundTask,ResetRatesBackgroundTask,RunScheduledBackgroundTask
public interface BackgroundTask extends HasMessageKey
A task which is executed on the background. The task information is persistent, and is removed after the processing is finished. When running in a cluster, it is guaranteed that only a single node will execute a task. BackgroundTasks are instantiated once and reused - they need to be thread safe. The process of reading the context happens in a database transaction, the execution happens outside any transaction scope, and then the record is removed in another transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(String display, String context)Executes the background task with the given context.StringgetName()The name of the background task.-
Methods inherited from interface org.cyclos.utils.HasMessageKey
getMessageKey
-
-