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 theSystemMaintenanceTaskQueue
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
Constructors Constructor Description JournalSystemMaintenanceTaskQueue(JournalService 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 void
enqueue(SystemMaintenanceTask task)
Add a new task to this queue.void
processEntries()
Apply the given action to contents of the queue.
-
-
-
Constructor Detail
-
JournalSystemMaintenanceTaskQueue
public JournalSystemMaintenanceTaskQueue(JournalService journalService, SystemMaintenanceTaskMarshalling taskMarshalling, SystemMaintenanceTaskRegistry taskRegistry, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Detail
-
enqueue
public void enqueue(SystemMaintenanceTask task)
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
-
-