Class TaskSystem

  • All Implemented Interfaces:
    SubSystem

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

      Nested Classes 
      Modifier and Type Class Description
      static class  TaskSystem.Task  
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskSystem​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, java.util.Set<TaskSystem.Task> tasks)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disable()
      Performs disable actions for the subsystem
      void enable()
      Performs enable actions for the subsystem.
      <T extends TaskSystem.Task>
      java.util.Optional<T>
      getTask​(java.lang.Class<T> ofType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TaskSystem

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

      • 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> java.util.Optional<T> getTask​(java.lang.Class<T> ofType)