Class JournalSystemMaintenanceTaskQueue
- java.lang.Object
-
- com.atlassian.confluence.impl.system.JournalSystemMaintenanceTaskQueue
-
- All Implemented Interfaces:
SystemMaintenanceTaskQueue
public class JournalSystemMaintenanceTaskQueue extends Object implements SystemMaintenanceTaskQueue
An implementation of theSystemMaintenanceTaskQueuethat is backed by the Journal.SystemMaintenanceTasks that are placed in this queue are backed by the database journalentry table.- Since:
- 7.6.0
-
-
Constructor Summary
Constructors Constructor Description JournalSystemMaintenanceTaskQueue(IndexJournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenqueue(SystemMaintenanceTask task)Add a new task to this queue.voidprocessEntries()Apply the given action to contents of the queue.
-
-
-
Constructor Detail
-
JournalSystemMaintenanceTaskQueue
public JournalSystemMaintenanceTaskQueue(IndexJournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Detail
-
enqueue
public void enqueue(SystemMaintenanceTask task)
Description copied from interface:SystemMaintenanceTaskQueueAdd a new task to this queue.- Specified by:
enqueuein interfaceSystemMaintenanceTaskQueue
-
processEntries
public void processEntries()
Description copied from interface:SystemMaintenanceTaskQueueApply the given action to contents of the queue. If the action throws aMaintenanceTaskExecutionExceptionwhen 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.- Specified by:
processEntriesin interfaceSystemMaintenanceTaskQueue
-
-