public class DefaultSystemMaintenanceTaskRegistry extends Object implements SystemMaintenanceTaskRegistry
Constructor and Description |
---|
DefaultSystemMaintenanceTaskRegistry() |
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 |
public DefaultSystemMaintenanceTaskRegistry()
public <T extends SystemMaintenanceTask> void register(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner)
SystemMaintenanceTaskRegistry
taskRunner
to run tasks of a specific typeregister
in interface SystemMaintenanceTaskRegistry
taskType
- type of tasks to registertaskRunner
- a SystemMaintenanceTaskRunner
instance to run tasks of type taskType
public void unregister(SystemMaintenanceTaskType taskType)
SystemMaintenanceTaskRegistry
SystemMaintenanceTaskRunner
as task runner for tasks of a specific typeunregister
in interface SystemMaintenanceTaskRegistry
taskType
- type of tasks to un-registerpublic Optional<SystemMaintenanceTaskRunner> findTaskRunner(SystemMaintenanceTaskType taskType)
SystemMaintenanceTaskRegistry
SystemMaintenanceTaskRunner
to run tasks of a specific typefindTaskRunner
in interface SystemMaintenanceTaskRegistry
taskType
- type of tasksCopyright © 2003–2020 Atlassian. All rights reserved.