Interface SystemMaintenanceTaskRegistry
-
- All Known Implementing Classes:
DefaultSystemMaintenanceTaskRegistry
public interface SystemMaintenanceTaskRegistryHold the mapping betweenSystemMaintenanceTaskandSystemMaintenanceTaskRunner- Since:
- 7.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<SystemMaintenanceTaskRunner>findTaskRunner(SystemMaintenanceTaskType taskType)Find aSystemMaintenanceTaskRunnerto run tasks of a specific type<T extends SystemMaintenanceTask>
voidregister(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner)RegistertaskRunnerto run tasks of a specific typevoidunregister(SystemMaintenanceTaskType taskType)Remove currentSystemMaintenanceTaskRunneras task runner for tasks of a specific type
-
-
-
Method Detail
-
register
<T extends SystemMaintenanceTask> void register(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner)
RegistertaskRunnerto run tasks of a specific type- Parameters:
taskType- type of tasks to registertaskRunner- aSystemMaintenanceTaskRunnerinstance to run tasks of typetaskType
-
unregister
void unregister(SystemMaintenanceTaskType taskType)
Remove currentSystemMaintenanceTaskRunneras task runner for tasks of a specific type- Parameters:
taskType- type of tasks to un-register
-
findTaskRunner
Optional<SystemMaintenanceTaskRunner> findTaskRunner(SystemMaintenanceTaskType taskType)
Find aSystemMaintenanceTaskRunnerto run tasks of a specific type- Parameters:
taskType- type of tasks- Returns:
- a task runner currently registered to run tasks of specified type.
-
-