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 Link icon

    • TaskSystem Link icon

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

    • enable Link icon

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

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

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