Interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>
- All Known Implementing Classes:
CreateIndexSnapshotMaintenanceTaskRunner
,ReIndexMaintenanceTaskRunner
,RestoreIndexSnapshotMaintenanceTaskRunner
public interface SystemMaintenanceTaskRunner<T extends SystemMaintenanceTask>
Run a
SystemMaintenanceTask
.
Each pair of SystemMaintenanceTaskRunner
and SystemMaintenanceTask
must be
registered in SystemMaintenanceTaskRegistry
.- Since:
- 7.5.0
-
Method Summary
-
Method Details
-
execute
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
-