Interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>
-
- All Known Implementing Classes:
CreateIndexSnapshotMaintenanceTaskRunner,RestoreIndexSnapshotMaintenanceTaskRunner
public interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>Run aSystemMaintenanceTask. Each pair ofSystemMaintenanceTaskRunnerandSystemMaintenanceTaskmust be registered inSystemMaintenanceTaskRegistry.- Since:
- 7.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(T task)Execute theSystemMaintenanceTask.
-
-
-
Method Detail
-
execute
void execute(T task) throws MaintenanceTaskExecutionException
Execute theSystemMaintenanceTask. If aMaintenanceTaskExecutionExceptionis thrown during execution, the task will be retried next time theJournalSystemMaintenanceTaskQueueis 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
-
-