Class JournalSystemMaintenanceTaskQueue
java.lang.Object
com.atlassian.confluence.impl.system.JournalSystemMaintenanceTaskQueue
- All Implemented Interfaces:
SystemMaintenanceTaskQueue
An implementation of the
SystemMaintenanceTaskQueue that 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
ConstructorsConstructorDescriptionJournalSystemMaintenanceTaskQueue(JournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidenqueue(SystemMaintenanceTask task) Add a new task to this queue.voidApply the given action to contents of the queue.
-
Constructor Details
-
JournalSystemMaintenanceTaskQueue
public JournalSystemMaintenanceTaskQueue(JournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Details
-
enqueue
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
-