Class DefaultSystemMaintenanceTaskRegistry
- java.lang.Object
-
- com.atlassian.confluence.impl.system.DefaultSystemMaintenanceTaskRegistry
-
- All Implemented Interfaces:
SystemMaintenanceTaskRegistry
public class DefaultSystemMaintenanceTaskRegistry extends Object implements SystemMaintenanceTaskRegistry
- Since:
- 7.5.0
-
-
Constructor Summary
Constructors Constructor Description DefaultSystemMaintenanceTaskRegistry()
-
Method Summary
All Methods Instance Methods Concrete 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
public <T extends SystemMaintenanceTask> void register(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner)
Description copied from interface:SystemMaintenanceTaskRegistryRegistertaskRunnerto run tasks of a specific type- Specified by:
registerin interfaceSystemMaintenanceTaskRegistry- Parameters:
taskType- type of tasks to registertaskRunner- aSystemMaintenanceTaskRunnerinstance to run tasks of typetaskType
-
unregister
public void unregister(SystemMaintenanceTaskType taskType)
Description copied from interface:SystemMaintenanceTaskRegistryRemove currentSystemMaintenanceTaskRunneras task runner for tasks of a specific type- Specified by:
unregisterin interfaceSystemMaintenanceTaskRegistry- Parameters:
taskType- type of tasks to un-register
-
findTaskRunner
public Optional<SystemMaintenanceTaskRunner> findTaskRunner(SystemMaintenanceTaskType taskType)
Description copied from interface:SystemMaintenanceTaskRegistryFind aSystemMaintenanceTaskRunnerto run tasks of a specific type- Specified by:
findTaskRunnerin interfaceSystemMaintenanceTaskRegistry- Parameters:
taskType- type of tasks- Returns:
- a task runner currently registered to run tasks of specified type.
-
-