public class JournalSystemMaintenanceTaskQueue extends Object implements SystemMaintenanceTaskQueue
SystemMaintenanceTaskQueue
that is backed by the Journal.
SystemMaintenanceTask
s 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)
SystemMaintenanceTaskQueue
enqueue
in interface SystemMaintenanceTaskQueue
public void processEntries()
SystemMaintenanceTaskQueue
MaintenanceTaskExecutionException
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 SystemMaintenanceTaskQueue
Copyright © 2003–2021 Atlassian. All rights reserved.