public interface SystemMaintenanceTaskRegistry
SystemMaintenanceTask and SystemMaintenanceTaskRunner| Modifier and Type | Method and Description |
|---|---|
Optional<SystemMaintenanceTaskRunner> |
findTaskRunner(SystemMaintenanceTaskType taskType)
Find a
SystemMaintenanceTaskRunner to run tasks of a specific type |
<T extends SystemMaintenanceTask> |
register(SystemMaintenanceTaskType taskType,
SystemMaintenanceTaskRunner<T> taskRunner)
Register
taskRunner to run tasks of a specific type |
void |
unregister(SystemMaintenanceTaskType taskType)
Remove current
SystemMaintenanceTaskRunner as task runner for tasks of a specific type |
<T extends SystemMaintenanceTask> void register(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner)
taskRunner to run tasks of a specific typetaskType - type of tasks to registertaskRunner - a SystemMaintenanceTaskRunner instance to run tasks of type taskTypevoid unregister(SystemMaintenanceTaskType taskType)
SystemMaintenanceTaskRunner as task runner for tasks of a specific typetaskType - type of tasks to un-registerOptional<SystemMaintenanceTaskRunner> findTaskRunner(SystemMaintenanceTaskType taskType)
SystemMaintenanceTaskRunner to run tasks of a specific typetaskType - type of tasksCopyright © 2003–2021 Atlassian. All rights reserved.