public class JournalSystemMaintenanceTaskQueue extends Object implements SystemMaintenanceTaskQueue
SystemMaintenanceTaskQueue that is backed by the Journal.
SystemMaintenanceTasks that are placed in this queue are backed by the database journalentry table.| Constructor and Description |
|---|
JournalSystemMaintenanceTaskQueue(JournalService journalService,
SystemMaintenanceTaskMarshalling taskMarshalling,
SystemMaintenanceTaskRegistry taskRegistry,
com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
enqueue(SystemMaintenanceTask task)
Add a new task to this queue.
|
void |
processEntries()
Apply the given action to contents of the queue.
|
public JournalSystemMaintenanceTaskQueue(JournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
public void enqueue(SystemMaintenanceTask task)
SystemMaintenanceTaskQueueenqueue in interface SystemMaintenanceTaskQueuepublic void processEntries()
SystemMaintenanceTaskQueueMaintenanceTaskExecutionException
when processing an element, processing will be stopped immediately and the next call to processEntries
will start from the failing element. If any other exception type is thrown, the failed element will be
skipped, and processing will continue.processEntries in interface SystemMaintenanceTaskQueueCopyright © 2003–2020 Atlassian. All rights reserved.