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.
SystemMaintenanceTask
s that are placed in this queue are backed by the database journalentry table.- Since:
- 7.6.0
-
Constructor Summary
ConstructorDescriptionJournalSystemMaintenanceTaskQueue
(JournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enqueue
(SystemMaintenanceTask task) Add a new task to this queue.void
Apply 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:SystemMaintenanceTaskQueue
Add a new task to this queue.- Specified by:
enqueue
in interfaceSystemMaintenanceTaskQueue
-
processEntries
public void processEntries()Description copied from interface:SystemMaintenanceTaskQueue
Apply the given action to contents of the queue. If the action throws aMaintenanceTaskExecutionException
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.- Specified by:
processEntries
in interfaceSystemMaintenanceTaskQueue
-