Class GlobalTaskRegistrar
java.lang.Object
wtf.ranked.hytale.server.runner.registrar.GlobalTaskRegistrar
- All Implemented Interfaces:
Registrar<GlobalRunningTask>
Handles the registration and lifecycle setup of Global tasks.
Implements Registrar to provide a standardized way of
adding orchestrator tasks to the project. It automatically
configures the task's execution queue by resolving its required steps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(@NonNull String name, @NonNull Class<? extends GlobalRunningTask> runningTask) Registers a component with a unique identifier.
-
Constructor Details
-
GlobalTaskRegistrar
public GlobalTaskRegistrar()
-
-
Method Details
-
register
Description copied from interface:RegistrarRegisters a component with a unique identifier.- Specified by:
registerin interfaceRegistrar<GlobalRunningTask>- Parameters:
name- unique name or ID for the componentrunningTask- the class implementation to register
-