Class TaskSystem

java.lang.Object
com.djrapitops.plan.TaskSystem
All Implemented Interfaces:
SubSystem

@Singleton public class TaskSystem extends Object implements SubSystem
TaskSystem that registers tasks for the plugin. See platform specific [Platform]TaskModule classes for what Tasks are registered.
  • Constructor Details

    • TaskSystem

      @Inject public TaskSystem(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, Set<TaskSystem.Task> tasks)
  • Method Details

    • enable

      public void enable()
      Description copied from interface: SubSystem
      Performs enable actions for the subsystem.
      Specified by:
      enable in interface SubSystem
    • disable

      public void disable()
      Description copied from interface: SubSystem
      Performs disable actions for the subsystem
      Specified by:
      disable in interface SubSystem
    • getTask

      public <T extends TaskSystem.Task> Optional<T> getTask(Class<T> ofType)