Class GlobalTaskRegistrar

java.lang.Object
wtf.ranked.hytale.server.runner.registrar.GlobalTaskRegistrar
All Implemented Interfaces:
Registrar<GlobalRunningTask>

public final class GlobalTaskRegistrar extends Object implements 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 Details

    • GlobalTaskRegistrar

      public GlobalTaskRegistrar()
  • Method Details

    • register

      public void register(@NonNull String name, @NonNull Class<? extends GlobalRunningTask> runningTask)
      Description copied from interface: Registrar
      Registers a component with a unique identifier.
      Specified by:
      register in interface Registrar<GlobalRunningTask>
      Parameters:
      name - unique name or ID for the component
      runningTask - the class implementation to register