Class SchedulerHandler


  • public class SchedulerHandler
    extends java.lang.Object
    SchedulerHandler for easy scheduling of tasks!
    • Method Summary

      Modifier and Type Method Description
      static void enable()
      Enable the SchedulerHandler.
      static long registerTask​(SchedulerConfiguration configuration)
      Register your SchedulerConfiguration and enable it for automatic scheduling.
      static void removeConfiguration​(long id)
      Remove a SchedulerConfiguration so it wont run again.
      • Methods inherited from class java.lang.Object

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

      • SchedulerHandler

        public SchedulerHandler()
    • Method Detail

      • enable

        public static void enable()
        Enable the SchedulerHandler.
      • registerTask

        public static long registerTask​(SchedulerConfiguration configuration)
        Register your SchedulerConfiguration and enable it for automatic scheduling.
        Parameters:
        configuration - Your SchedulerConfiguration to register
        Returns:
        The id of the configuration to remove it again if wanted.
      • removeConfiguration

        public static void removeConfiguration​(long id)
        Remove a SchedulerConfiguration so it wont run again.
        Parameters:
        id - The id of the ScheduleConfiguration to remove.