Interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>
-
- All Known Implementing Classes:
CreateIndexSnapshotMaintenanceTaskRunner
,RestoreIndexSnapshotMaintenanceTaskRunner
public interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>
Run aSystemMaintenanceTask
. Each pair ofSystemMaintenanceTaskRunner
andSystemMaintenanceTask
must be registered inSystemMaintenanceTaskRegistry
.- Since:
- 7.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(T task)
Execute theSystemMaintenanceTask
.
-
-
-
Method Detail
-
execute
void execute(T task) throws MaintenanceTaskExecutionException
Execute theSystemMaintenanceTask
. If aMaintenanceTaskExecutionException
is thrown during execution, the task will be retried next time theJournalSystemMaintenanceTaskQueue
is flushed. Any other exceptions thrown will cause the task to be skipped.- Throws:
MaintenanceTaskExecutionException
- if the execution fails but should be retried at a later date
-
-